Re: [PATCH 0/4] constify thermal_zone_of_device_ops structures
From: Zhang Rui
Date: Tue Aug 08 2017 - 09:44:39 EST
On Sat, 2017-08-05 at 22:37 +0200, Julia Lawall wrote:
> The thermal_zone_of_device_ops structures are only passed as the
> fourth
> argument to thermal_zone_of_sensor_register, which is declared as
> const.
> Thus the thermal_zone_of_device_ops structures themselves can be
> const.
>
> Done with the help of Coccinelle.
I still see the same problem in other thermal drivers, which is not
covered by this patch set. Can we fix them all in one time?
thanks,
rui
>
> ---
>
> Âdrivers/thermal/broadcom/bcm2835_thermal.c |ÂÂÂÂ2 +-
> Âdrivers/thermal/qoriq_thermal.cÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂÂ2 +-
> Âdrivers/thermal/samsung/exynos_tmu.cÂÂÂÂÂÂÂ|ÂÂÂÂ2 +-
> Âdrivers/thermal/zx2967_thermal.cÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂÂ2 +-
> Â4 files changed, 4 insertions(+), 4 deletions(-)