[PATCH] rtc: armada38x: add __ro_after_init to armada38x_rtc_ops

From
Julia Lawall <hidden>
Date
2017-01-04 11:45:06
Also in
linux-rtc, lkml
Reply to
Alexandre Belloni, 2017-01-04
The question was whether the point to the rtc_class_ops could be made
__ro_after_init. And Russell is right, it is pointed to by the ops
pointer in a struct rtc_device and that struct is dynamically allocated
in rtc_device_register().
OK, I think it's a terminology issue.  You mean the structure that
contains the pointer, and not the pointer itself, which is already const.

thanks,
julia
Thread (13 messages) 13 messages, 5 authors, last reply 2017-01-04
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help