diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-20 19:30:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-20 19:30:27 -0400 |
commit | bfebeb16722d93caf7870b63aa7d094b6843479a (patch) | |
tree | 48cfc8044f7604b99a127a3c0667ff20f57e22ef /drivers/rtc/rtc-dev.c | |
parent | 3933ec73cd9bbff4a98259d0eae606af4e2850a2 (diff) | |
parent | 6b583a64fd1e019fd01626b46892ebf2361951c5 (diff) |
Merge tag 'rtc-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux
Pull RTC updates from Alexandre Belloni:
"It is now possible to add custom sysfs attributes while avoiding a
possible race condition. Unused code has been removed resulting in a
nice reduction of the code base. And more drivers have been switched
to SPDX by their maintainers.
Summary:
Subsystem:
- new helpers to add custom sysfs attributes
- struct rtc_task removal along with rtc_irq_[un]register()
- rtc_irq_set_state and rtc_irq_set_freq are not exported anymore
Drivers:
- armada38x: reset after rtc power loss
- ds1307: now supports m41t11
- isl1208: now supports isl1219 and tamper detection
- pcf2127: internal SRAM support"
* tag 'rtc-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux: (34 commits)
rtc: ds1307: simplify hwmon config
rtc: s5m: Add SPDX license identifier
rtc: maxim: Add SPDX license identifiers
rtc: isl1219: add device tree documentation
rtc: isl1208: set ev-evienb bit from device tree
rtc: isl1208: Add "evdet" interrupt source for isl1219
rtc: isl1208: add support for isl1219 with tamper detection
rtc: sysfs: facilitate attribute add to rtc device
rtc: remove struct rtc_task
char: rtc: remove task handling
rtc: pcf85063: preserve control register value between stop and start
rtc: sh: remove unused variable rtc_dev
rtc: unexport rtc_irq_set_*
rtc: simplify rtc_irq_set_state/rtc_irq_set_freq
rtc: remove irq_task and irq_task_lock
rtc: remove rtc_irq_register/rtc_irq_unregister
rtc: sh: remove dead code
rtc: sa1100: don't set PIE frequency
rtc: ds1307: support m41t11 variant
rtc: ds1307: fix data pointer to m41t0
...
Diffstat (limited to 'drivers/rtc/rtc-dev.c')
-rw-r--r-- | drivers/rtc/rtc-dev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-dev.c b/drivers/rtc/rtc-dev.c index efa221e8bc22..43d962a9c210 100644 --- a/drivers/rtc/rtc-dev.c +++ b/drivers/rtc/rtc-dev.c | |||
@@ -341,11 +341,11 @@ static long rtc_dev_ioctl(struct file *file, | |||
341 | return rtc_set_time(rtc, &tm); | 341 | return rtc_set_time(rtc, &tm); |
342 | 342 | ||
343 | case RTC_PIE_ON: | 343 | case RTC_PIE_ON: |
344 | err = rtc_irq_set_state(rtc, NULL, 1); | 344 | err = rtc_irq_set_state(rtc, 1); |
345 | break; | 345 | break; |
346 | 346 | ||
347 | case RTC_PIE_OFF: | 347 | case RTC_PIE_OFF: |
348 | err = rtc_irq_set_state(rtc, NULL, 0); | 348 | err = rtc_irq_set_state(rtc, 0); |
349 | break; | 349 | break; |
350 | 350 | ||
351 | case RTC_AIE_ON: | 351 | case RTC_AIE_ON: |
@@ -365,7 +365,7 @@ static long rtc_dev_ioctl(struct file *file, | |||
365 | return rtc_update_irq_enable(rtc, 0); | 365 | return rtc_update_irq_enable(rtc, 0); |
366 | 366 | ||
367 | case RTC_IRQP_SET: | 367 | case RTC_IRQP_SET: |
368 | err = rtc_irq_set_freq(rtc, NULL, arg); | 368 | err = rtc_irq_set_freq(rtc, arg); |
369 | break; | 369 | break; |
370 | 370 | ||
371 | case RTC_IRQP_READ: | 371 | case RTC_IRQP_READ: |
@@ -427,7 +427,7 @@ static int rtc_dev_release(struct inode *inode, struct file *file) | |||
427 | /* Keep ioctl until all drivers are converted */ | 427 | /* Keep ioctl until all drivers are converted */ |
428 | rtc_dev_ioctl(file, RTC_UIE_OFF, 0); | 428 | rtc_dev_ioctl(file, RTC_UIE_OFF, 0); |
429 | rtc_update_irq_enable(rtc, 0); | 429 | rtc_update_irq_enable(rtc, 0); |
430 | rtc_irq_set_state(rtc, NULL, 0); | 430 | rtc_irq_set_state(rtc, 0); |
431 | 431 | ||
432 | clear_bit_unlock(RTC_DEV_BUSY, &rtc->flags); | 432 | clear_bit_unlock(RTC_DEV_BUSY, &rtc->flags); |
433 | return 0; | 433 | return 0; |