Skip to content

Commit 56d9df4

Browse files
rtc: ds1685: stop setting max_user_freq
max_user_freq has not been related to the hardware RTC since commit 6610e08 ("RTC: Rework RTC code to use timerqueue for events"). Stop setting it from individual driver to avoid confusing new contributors. Acked-by: Joshua Kinard <linux@kumba.dev> Link: https://patch.msgid.link/20251101-max_user_freq-v1-2-c9a274fd6883@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent ea57f04 commit 56d9df4

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/rtc/rtc-ds1685.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,9 +1268,6 @@ ds1685_rtc_probe(struct platform_device *pdev)
12681268
rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_2000;
12691269
rtc_dev->range_max = RTC_TIMESTAMP_END_2099;
12701270

1271-
/* Maximum periodic rate is 8192Hz (0.122070ms). */
1272-
rtc_dev->max_user_freq = RTC_MAX_USER_FREQ;
1273-
12741271
/* See if the platform doesn't support UIE. */
12751272
if (pdata->uie_unsupported)
12761273
clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc_dev->features);

include/linux/rtc/ds1685.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ struct ds1685_rtc_platform_data {
324324
#define RTC_SQW_2HZ 0x0f /* 0 1 1 1 1 */
325325
#define RTC_SQW_0HZ 0x00 /* 0 0 0 0 0 */
326326
#define RTC_SQW_32768HZ 32768 /* 1 - - - - */
327-
#define RTC_MAX_USER_FREQ 8192
328327

329328

330329
/*

0 commit comments

Comments
 (0)