Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rtc: ds1685: stop setting max_user_freq

max_user_freq has not been related to the hardware RTC since commit
6610e0893b8b ("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>

-4
-3
drivers/rtc/rtc-ds1685.c
··· 1268 1268 rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_2000; 1269 1269 rtc_dev->range_max = RTC_TIMESTAMP_END_2099; 1270 1270 1271 - /* Maximum periodic rate is 8192Hz (0.122070ms). */ 1272 - rtc_dev->max_user_freq = RTC_MAX_USER_FREQ; 1273 - 1274 1271 /* See if the platform doesn't support UIE. */ 1275 1272 if (pdata->uie_unsupported) 1276 1273 clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc_dev->features);
-1
include/linux/rtc/ds1685.h
··· 324 324 #define RTC_SQW_2HZ 0x0f /* 0 1 1 1 1 */ 325 325 #define RTC_SQW_0HZ 0x00 /* 0 0 0 0 0 */ 326 326 #define RTC_SQW_32768HZ 32768 /* 1 - - - - */ 327 - #define RTC_MAX_USER_FREQ 8192 328 327 329 328 330 329 /*