]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rtc: ds1685: stop setting max_user_freq
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 1 Nov 2025 00:45:04 +0000 (01:45 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 3 Nov 2025 13:38:37 +0000 (14:38 +0100)
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>
drivers/rtc/rtc-ds1685.c
include/linux/rtc/ds1685.h

index 97423f1d0361f978931adaf6db18621cba8b83aa..5fc8e36b1abf81acc3f5eadb7892f8ae5bbff56b 100644 (file)
@@ -1268,9 +1268,6 @@ ds1685_rtc_probe(struct platform_device *pdev)
        rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_2000;
        rtc_dev->range_max = RTC_TIMESTAMP_END_2099;
 
-       /* Maximum periodic rate is 8192Hz (0.122070ms). */
-       rtc_dev->max_user_freq = RTC_MAX_USER_FREQ;
-
        /* See if the platform doesn't support UIE. */
        if (pdata->uie_unsupported)
                clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc_dev->features);
index 01da4582db6d08ed0416d92dfaa4421d626c00cc..8ec0ebfaef04fa4132fdeb7bada5a9c7ab50e801 100644 (file)
@@ -324,7 +324,6 @@ struct ds1685_rtc_platform_data {
 #define RTC_SQW_2HZ            0x0f    /*  0    1   1   1   1  */
 #define RTC_SQW_0HZ            0x00    /*  0    0   0   0   0  */
 #define RTC_SQW_32768HZ                32768   /*  1    -   -   -   -  */
-#define RTC_MAX_USER_FREQ      8192
 
 
 /*