Re: [PATCH] drm/etnaviv: constify static struct cooling_ops

2021-12-01 Thread Lucas Stach
Am Sonntag, dem 28.11.2021 um 21:19 +0100 schrieb Rikard Falkeborn: > The only usage of cooling_ops is to pass its address to > thermal_of_cooling_device_register(), which takes a pointer to const > struct thermal_cooling_device_ops as input. Make it const to allow the > compiler to put it in read-

Re: [PATCH] drm/etnaviv: constify static struct cooling_ops

2021-11-29 Thread Christian Gmeiner
Am So., 28. Nov. 2021 um 21:20 Uhr schrieb Rikard Falkeborn : > > The only usage of cooling_ops is to pass its address to > thermal_of_cooling_device_register(), which takes a pointer to const > struct thermal_cooling_device_ops as input. Make it const to allow the > compiler to put it in read-only

[PATCH] drm/etnaviv: constify static struct cooling_ops

2021-11-28 Thread Rikard Falkeborn
The only usage of cooling_ops is to pass its address to thermal_of_cooling_device_register(), which takes a pointer to const struct thermal_cooling_device_ops as input. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/gpu/drm/etnaviv/