mbox series

[0/8] rtc: use DEVICE_ATTR_* macro to simplify code

Message ID 20210602073820.11011-1-thunder.leizhen@huawei.com
Headers show
Series rtc: use DEVICE_ATTR_* macro to simplify code | expand

Message

Zhen Lei June 2, 2021, 7:38 a.m. UTC
DEVICE_ATTR_RO marks ReadOnly file, DEVICE_ATTR_RW marks ReadWrite file,
it's clearer than DEVICE_ATTR.

Zhen Lei (8):
  rtc: x1205: use DEVICE_ATTR_RO macro
  rtc: rx8025: use DEVICE_ATTR_RW macro
  rtc: rs5c372: use DEVICE_ATTR_RO macro
  rtc: isl1208: use DEVICE_ATTR_* macro
  rtc: ds1685: use DEVICE_ATTR_RO macro
  rtc: ds1343: use DEVICE_ATTR_* macro
  rtc: bq32k: use DEVICE_ATTR_RW macro
  rtc: ab8500: use DEVICE_ATTR_RW macro

 drivers/rtc/rtc-ab8500.c  | 14 ++++++--------
 drivers/rtc/rtc-bq32k.c   | 16 +++++++---------
 drivers/rtc/rtc-ds1343.c  | 19 +++++++++----------
 drivers/rtc/rtc-ds1685.c  | 27 ++++++++++++---------------
 drivers/rtc/rtc-isl1208.c | 29 ++++++++++++-----------------
 drivers/rtc/rtc-rs5c372.c | 12 ++++++------
 drivers/rtc/rtc-rx8025.c  | 16 +++++++---------
 drivers/rtc/rtc-x1205.c   | 12 ++++++------
 8 files changed, 65 insertions(+), 80 deletions(-)