]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: st-lpc: Constify st_rtc_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sun, 13 Sep 2020 12:26:44 +0000 (14:26 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 15 Sep 2020 09:21:50 +0000 (11:21 +0200)
commitcfc12bb09bb4f4105f5a395ad8dae81a59c008c8
treeced936b407b2dceb28b1735fb32c4577a0845f04
parent9c7d5339fe6fa44d594752c41e9e31cd9dcc8e31
rtc: st-lpc: Constify st_rtc_ops

The only usage of st_rtc_ops is to assign its address to the ops field
in the rtc_device struct. which is a const pointer. Make it const to
allow the compiler to put it in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200913122644.35515-1-rikard.falkeborn@gmail.com
drivers/rtc/rtc-st-lpc.c