[PATCH] rtc: st-lpc: Constify st_rtc_ops

Alexandre Belloni alexandre.belloni at bootlin.com
Tue Sep 15 05:21:58 EDT 2020


On Sun, 13 Sep 2020 14:26:44 +0200, Rikard Falkeborn wrote:
> 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.

Applied, thanks!

[1/1] rtc: st-lpc: Constify st_rtc_ops
      commit: d0a3b65052f041852c855ea1135659770ba0bc09

Best regards,
-- 
Alexandre Belloni <alexandre.belloni at bootlin.com>



More information about the linux-arm-kernel mailing list