Home
last modified time | relevance | path

Searched hist:"0854 fa22" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/counter/
H A Dmicrochip-tcb-capture.c0854fa22 Tue Sep 22 15:19:41 CDT 2020 Rikard Falkeborn <rikard.falkeborn@gmail.com> counter: microchip-tcb-capture: Constify mchp_tc_ops

The only usage of mchp_tc_ops is to assign its address to the ops field
in the counter_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>
Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Link: https://lore.kernel.org/r/20200922201941.41328-1-rikard.falkeborn@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
0854fa22 Tue Sep 22 15:19:41 CDT 2020 Rikard Falkeborn <rikard.falkeborn@gmail.com> counter: microchip-tcb-capture: Constify mchp_tc_ops

The only usage of mchp_tc_ops is to assign its address to the ops field
in the counter_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>
Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Link: https://lore.kernel.org/r/20200922201941.41328-1-rikard.falkeborn@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>