mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] constify rtc i2c_device_id
@ 2017-08-19 19:07 Arvind Yadav
  2017-08-19 19:07 ` [PATCH 1/4] rtc: ds1672: constify i2c_device_id Arvind Yadav
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Arvind Yadav @ 2017-08-19 19:07 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni; +Cc: linux-kernel, linux-rtc

i2c_device_id are not supposed to change at runtime. All functions
working with i2c_device_id provided by <linux/i2c.h> work with
const i2c_device_id. So mark the non-const structs as const.

Arvind Yadav (4):
  [PATCH 1/4] rtc: ds1672: constify i2c_device_id
  [PATCH 2/4] rtc: em3027: constify i2c_device_id
  [PATCH 3/4] rtc: max6900: constify i2c_device_id
  [PATCH 4/4] rtc: rv3029c2: constify i2c_device_id

 drivers/rtc/rtc-ds1672.c   | 2 +-
 drivers/rtc/rtc-em3027.c   | 2 +-
 drivers/rtc/rtc-max6900.c  | 2 +-
 drivers/rtc/rtc-rv3029c2.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-08-24  9:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-19 19:07 [PATCH 0/4] constify rtc i2c_device_id Arvind Yadav
2017-08-19 19:07 ` [PATCH 1/4] rtc: ds1672: constify i2c_device_id Arvind Yadav
2017-08-19 19:07 ` [PATCH 2/4] rtc: em3027: " Arvind Yadav
2017-08-19 19:07 ` [PATCH 3/4] rtc: max6900: " Arvind Yadav
2017-08-19 19:07 ` [PATCH 4/4] rtc: rv3029c2: " Arvind Yadav
2017-08-24  9:01 ` [PATCH 0/4] constify rtc i2c_device_id Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®