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: m41t80: switch to RTC_FEATURE_UPDATE_INTERRUPT

Stop using uie_unsupported and clear RTC_FEATURE_UPDATE_INTERRUPT instead.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220309162301.61679-6-alexandre.belloni@bootlin.com

+2 -4
+2 -4
drivers/rtc/rtc-m41t80.c
··· 932 932 m41t80_data->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; 933 933 m41t80_data->rtc->range_max = RTC_TIMESTAMP_END_2099; 934 934 935 - if (client->irq <= 0) { 936 - /* We cannot support UIE mode if we do not have an IRQ line */ 937 - m41t80_data->rtc->uie_unsupported = 1; 938 - } 935 + if (client->irq <= 0) 936 + clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, m41t80_data->rtc->features); 939 937 940 938 /* Make sure HT (Halt Update) bit is cleared */ 941 939 rc = i2c_smbus_read_byte_data(client, M41T80_REG_ALARM_HOUR);