Skip to content

rtc: constify all rtc_class_ops

Alexandre Belloni linux-arm-kernel linux-rtc linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17rtc: introduce features bitfielddrivers/rtc/class.c drivers/rtc/interface.c include/linux/rtc.h +1 more+18 -60 replies
2/17rtc: pl031: use RTC_FEATURE_ALARMdrivers/rtc/rtc-pl031.c+2 -61 reply
3/17rtc: armada38x: remove armada38x_rtc_ops_noirqdrivers/rtc/rtc-armada38x.c+4 -170 replies
4/17rtc: cmos: remove cmos_rtc_ops_no_alarmdrivers/rtc/rtc-cmos.c+3 -93 replies
5/17rtc: mv: remove mv_rtc_alarm_opsdrivers/rtc/rtc-mv.c+4 -100 replies
6/17rtc: m48t59: remove m48t02_rtc_opsdrivers/rtc/rtc-m48t59.c+8 -140 replies
7/17rtc: pcf2127: remove pcf2127_rtc_alrm_opsdrivers/rtc/rtc-pcf2127.c+3 -80 replies
8/17rtc: pcf85063: remove pcf85063_rtc_ops_alarmdrivers/rtc/rtc-pcf85063.c+2 -90 replies
9/17rtc: rx8010: drop a struct rtc_class_opsdrivers/rtc/rtc-rx8010.c+3 -100 replies
10/17rtc: pcf85363: drop a struct rtc_class_opsdrivers/rtc/rtc-pcf85363.c+2 -60 replies
11/17rtc: m41t80: constify m41t80_rtc_opsdrivers/rtc/rtc-m41t80.c+7 -70 replies
12/17rtc: opal: constify opal_rtc_opsdrivers/rtc/rtc-opal.c+7 -60 replies
13/17rtc: rv3028: constify rv3028_rtc_opsdrivers/rtc/rtc-rv3028.c+6 -50 replies
14/17rtc: rv3029: constify rv3029_rtc_opsdrivers/rtc/rtc-rv3029c2.c+6 -50 replies
15/17rtc: rv3032: constify rv3032_rtc_opsdrivers/rtc/rtc-rv3032.c+6 -50 replies
16/17rtc: rv8803: constify rv8803_rtc_opsdrivers/rtc/rtc-rv8803.c+6 -50 replies
17/17rtc: tps65910: remove tps65910_rtc_ops_noirqdrivers/rtc/rtc-tps65910.c+4 -110 replies

Reviews trailers per patch

1 of 17 patches has a Reviewed-by or Acked-by.

PatchLinus Walleij
1/17
2/17A-b
3/17
4/17
5/17
6/17
7/17
8/17
9/17
10/17
11/17
12/17
13/17
14/17
15/17
16/17
17/17

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/17] rtc: constify all rtc_class_ops

Hello,

This first introduces a features bitfield that is used to handle the presence or absence of alarms instead of relying only on the presence of the alarm callbacks.

The drivers modifying a struct rtc_class_ops or using two different structures are then converted.

Alexandre Belloni (17):
rtc: introduce features bitfield
rtc: pl031: use RTC_FEATURE_ALARM
rtc: armada38x: remove armada38x_rtc_ops_noirq
rtc: cmos: remove cmos_rtc_ops_no_alarm
rtc: mv: remove mv_rtc_alarm_ops
rtc: m48t59: remove m48t02_rtc_ops
rtc: pcf2127: remove pcf2127_rtc_alrm_ops
rtc: pcf85063: remove pcf85063_rtc_ops_alarm
rtc: rx8010: drop a struct rtc_class_ops
rtc: pcf85363: drop a struct rtc_class_ops
rtc: m41t80: constify m41t80_rtc_ops
rtc: opal: constify opal_rtc_ops
rtc: rv3028: constify rv3028_rtc_ops
rtc: rv3029: constify rv3029_rtc_ops
rtc: rv3032: constify rv3032_rtc_ops
rtc: rv8803: constify rv8803_rtc_ops
rtc: tps65910: remove tps65910_rtc_ops_noirq

 drivers/rtc/class.c         |  5 +++++
 drivers/rtc/interface.c     | 12 ++++++------
 drivers/rtc/rtc-armada38x.c | 21 ++++-----------------
 drivers/rtc/rtc-cmos.c      | 12 +++---------
 drivers/rtc/rtc-m41t80.c    | 14 +++++++-------
 drivers/rtc/rtc-m48t59.c    | 22 ++++++++--------------
 drivers/rtc/rtc-mv.c        | 14 ++++----------
 drivers/rtc/rtc-opal.c      | 13 +++++++------
 drivers/rtc/rtc-pcf2127.c   | 11 +++--------
 drivers/rtc/rtc-pcf85063.c  | 11 ++---------
 drivers/rtc/rtc-pcf85363.c  |  8 ++------
 drivers/rtc/rtc-pl031.c     |  8 ++------
 drivers/rtc/rtc-rv3028.c    | 11 ++++++-----
 drivers/rtc/rtc-rv3029c2.c  | 11 ++++++-----
 drivers/rtc/rtc-rv3032.c    | 11 ++++++-----
 drivers/rtc/rtc-rv8803.c    | 11 ++++++-----
 drivers/rtc/rtc-rx8010.c    | 13 +++----------
 drivers/rtc/rtc-tps65910.c  | 15 ++++-----------
 include/linux/rtc.h         |  2 ++
 include/uapi/linux/rtc.h    |  5 +++++
 20 files changed, 91 insertions(+), 139 deletions(-)
Signature · 1 line
2.29.2