* [PATCH 0/9 v2] constify thermal_zone_of_device_ops structures
@ 2017-08-08 15:08 Julia Lawall
2017-08-08 15:09 ` [PATCH 8/9 v2] hwmon: (core) " Julia Lawall
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Julia Lawall @ 2017-08-08 15:08 UTC (permalink / raw)
To: linux-rpi-kernel
Cc: bhumirks, kernel-janitors, linux-arm-kernel, linux-samsung-soc,
linux-kernel, linux-pm, linux-input, linux-hwmon
The thermal_zone_of_device_ops structures are only passed as the fourth
argument to thermal_zone_of_sensor_register or
devm_thermal_zone_of_sensor_register, both of which are declared as const.
Thus the thermal_zone_of_device_ops structures themselves can be const.
v2: add structures passed to devm_thermal_zone_of_sensor_register also.
Done with the help of Coccinelle.
---
drivers/hwmon/hwmon.c | 2 +-
drivers/hwmon/scpi-hwmon.c | 2 +-
drivers/input/touchscreen/sun4i-ts.c | 2 +-
drivers/thermal/broadcom/bcm2835_thermal.c | 2 +-
drivers/thermal/hisi_thermal.c | 2 +-
drivers/thermal/qoriq_thermal.c | 2 +-
drivers/thermal/rcar_gen3_thermal.c | 2 +-
drivers/thermal/samsung/exynos_tmu.c | 2 +-
drivers/thermal/zx2967_thermal.c | 2 +-
9 files changed, 9 insertions(+), 9 deletions(-)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 8/9 v2] hwmon: (core) constify thermal_zone_of_device_ops structures
2017-08-08 15:08 [PATCH 0/9 v2] constify thermal_zone_of_device_ops structures Julia Lawall
@ 2017-08-08 15:09 ` Julia Lawall
2017-08-09 2:01 ` [8/9, " Guenter Roeck
2017-08-08 15:09 ` [PATCH 9/9 v2] hwmon: (scpi) " Julia Lawall
2017-08-11 3:36 ` [PATCH 0/9 v2] " Zhang Rui
2 siblings, 1 reply; 7+ messages in thread
From: Julia Lawall @ 2017-08-08 15:09 UTC (permalink / raw)
To: Jean Delvare
Cc: bhumirks, kernel-janitors, Guenter Roeck, linux-hwmon, linux-kernel
The thermal_zone_of_device_ops structure is only passed as the fourth
argument to devm_thermal_zone_of_sensor_register, which is declared
as const. Thus the thermal_zone_of_device_ops structure itself can
be const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
v2: New patch
drivers/hwmon/hwmon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c
index 2ac578a..c9790e2 100644
--- a/drivers/hwmon/hwmon.c
+++ b/drivers/hwmon/hwmon.c
@@ -135,7 +135,7 @@ static int hwmon_thermal_get_temp(void *data, int *temp)
return 0;
}
-static struct thermal_zone_of_device_ops hwmon_thermal_ops = {
+static const struct thermal_zone_of_device_ops hwmon_thermal_ops = {
.get_temp = hwmon_thermal_get_temp,
};
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 9/9 v2] hwmon: (scpi) constify thermal_zone_of_device_ops structures
2017-08-08 15:08 [PATCH 0/9 v2] constify thermal_zone_of_device_ops structures Julia Lawall
2017-08-08 15:09 ` [PATCH 8/9 v2] hwmon: (core) " Julia Lawall
@ 2017-08-08 15:09 ` Julia Lawall
2017-08-09 2:02 ` [9/9, " Guenter Roeck
2017-08-11 3:36 ` [PATCH 0/9 v2] " Zhang Rui
2 siblings, 1 reply; 7+ messages in thread
From: Julia Lawall @ 2017-08-08 15:09 UTC (permalink / raw)
To: Jean Delvare
Cc: bhumirks, kernel-janitors, Guenter Roeck, linux-hwmon, linux-kernel
The thermal_zone_of_device_ops structure is only passed as the fourth
argument to devm_thermal_zone_of_sensor_register, which is declared
as const. Thus the thermal_zone_of_device_ops structure itself can
be const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
v2: New patch
drivers/hwmon/scpi-hwmon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/scpi-hwmon.c b/drivers/hwmon/scpi-hwmon.c
index a586480..7e49da5 100644
--- a/drivers/hwmon/scpi-hwmon.c
+++ b/drivers/hwmon/scpi-hwmon.c
@@ -120,7 +120,7 @@ static int scpi_read_temp(void *dev, int *temp)
return sprintf(buf, "%s\n", sensor->info.name);
}
-static struct thermal_zone_of_device_ops scpi_sensor_ops = {
+static const struct thermal_zone_of_device_ops scpi_sensor_ops = {
.get_temp = scpi_read_temp,
};
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [8/9, v2] hwmon: (core) constify thermal_zone_of_device_ops structures
2017-08-08 15:09 ` [PATCH 8/9 v2] hwmon: (core) " Julia Lawall
@ 2017-08-09 2:01 ` Guenter Roeck
0 siblings, 0 replies; 7+ messages in thread
From: Guenter Roeck @ 2017-08-09 2:01 UTC (permalink / raw)
To: Julia Lawall
Cc: Jean Delvare, bhumirks, kernel-janitors, linux-hwmon, linux-kernel
On Tue, Aug 08, 2017 at 05:09:02PM +0200, Julia Lawall wrote:
> The thermal_zone_of_device_ops structure is only passed as the fourth
> argument to devm_thermal_zone_of_sensor_register, which is declared
> as const. Thus the thermal_zone_of_device_ops structure itself can
> be const.
>
> Done with the help of Coccinelle.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Applied to hwmon-next.
Thanks,
Guenter
> ---
>
> v2: New patch
>
> drivers/hwmon/hwmon.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
> diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c
> index 2ac578a..c9790e2 100644
> --- a/drivers/hwmon/hwmon.c
> +++ b/drivers/hwmon/hwmon.c
> @@ -135,7 +135,7 @@ static int hwmon_thermal_get_temp(void *data, int *temp)
> return 0;
> }
>
> -static struct thermal_zone_of_device_ops hwmon_thermal_ops = {
> +static const struct thermal_zone_of_device_ops hwmon_thermal_ops = {
> .get_temp = hwmon_thermal_get_temp,
> };
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9/9, v2] hwmon: (scpi) constify thermal_zone_of_device_ops structures
2017-08-08 15:09 ` [PATCH 9/9 v2] hwmon: (scpi) " Julia Lawall
@ 2017-08-09 2:02 ` Guenter Roeck
0 siblings, 0 replies; 7+ messages in thread
From: Guenter Roeck @ 2017-08-09 2:02 UTC (permalink / raw)
To: Julia Lawall
Cc: Jean Delvare, bhumirks, kernel-janitors, linux-hwmon, linux-kernel
On Tue, Aug 08, 2017 at 05:09:03PM +0200, Julia Lawall wrote:
> The thermal_zone_of_device_ops structure is only passed as the fourth
> argument to devm_thermal_zone_of_sensor_register, which is declared
> as const. Thus the thermal_zone_of_device_ops structure itself can
> be const.
>
> Done with the help of Coccinelle.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Applied to hwmon-next.
Thanks,
Guenter
> ---
>
> v2: New patch
>
> drivers/hwmon/scpi-hwmon.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
> diff --git a/drivers/hwmon/scpi-hwmon.c b/drivers/hwmon/scpi-hwmon.c
> index a586480..7e49da5 100644
> --- a/drivers/hwmon/scpi-hwmon.c
> +++ b/drivers/hwmon/scpi-hwmon.c
> @@ -120,7 +120,7 @@ static int scpi_read_temp(void *dev, int *temp)
> return sprintf(buf, "%s\n", sensor->info.name);
> }
>
> -static struct thermal_zone_of_device_ops scpi_sensor_ops = {
> +static const struct thermal_zone_of_device_ops scpi_sensor_ops = {
> .get_temp = scpi_read_temp,
> };
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/9 v2] constify thermal_zone_of_device_ops structures
2017-08-08 15:08 [PATCH 0/9 v2] constify thermal_zone_of_device_ops structures Julia Lawall
2017-08-08 15:09 ` [PATCH 8/9 v2] hwmon: (core) " Julia Lawall
2017-08-08 15:09 ` [PATCH 9/9 v2] hwmon: (scpi) " Julia Lawall
@ 2017-08-11 3:36 ` Zhang Rui
2017-08-11 5:17 ` Julia Lawall
2 siblings, 1 reply; 7+ messages in thread
From: Zhang Rui @ 2017-08-11 3:36 UTC (permalink / raw)
To: Julia Lawall, linux-rpi-kernel
Cc: bhumirks, kernel-janitors, linux-arm-kernel, linux-samsung-soc,
linux-kernel, linux-pm, linux-input, linux-hwmon
On Tue, 2017-08-08 at 17:08 +0200, Julia Lawall wrote:
> The thermal_zone_of_device_ops structures are only passed as the
> fourth
> argument to thermal_zone_of_sensor_register or
> devm_thermal_zone_of_sensor_register, both of which are declared as
> const.
> Thus the thermal_zone_of_device_ops structures themselves can be
> const.
>
> v2: add structures passed to devm_thermal_zone_of_sensor_register
> also.
>
> Done with the help of Coccinelle.
>
I don't see the patches changes out of drivers/thermal.
As there is no dependencies between these patches, I guess I will only
take patches that changes drivers/thermal.
thanks,
rui
> ---
>
> drivers/hwmon/hwmon.c | 2 +-
> drivers/hwmon/scpi-hwmon.c | 2 +-
> drivers/input/touchscreen/sun4i-ts.c | 2 +-
> drivers/thermal/broadcom/bcm2835_thermal.c | 2 +-
> drivers/thermal/hisi_thermal.c | 2 +-
> drivers/thermal/qoriq_thermal.c | 2 +-
> drivers/thermal/rcar_gen3_thermal.c | 2 +-
> drivers/thermal/samsung/exynos_tmu.c | 2 +-
> drivers/thermal/zx2967_thermal.c | 2 +-
> 9 files changed, 9 insertions(+), 9 deletions(-)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/9 v2] constify thermal_zone_of_device_ops structures
2017-08-11 3:36 ` [PATCH 0/9 v2] " Zhang Rui
@ 2017-08-11 5:17 ` Julia Lawall
0 siblings, 0 replies; 7+ messages in thread
From: Julia Lawall @ 2017-08-11 5:17 UTC (permalink / raw)
To: Zhang Rui
Cc: Julia Lawall, linux-rpi-kernel, bhumirks, kernel-janitors,
linux-arm-kernel, linux-samsung-soc, linux-kernel, linux-pm,
linux-input, linux-hwmon
[-- Attachment #1: Type: text/plain, Size: 1740 bytes --]
On Fri, 11 Aug 2017, Zhang Rui wrote:
> On Tue, 2017-08-08 at 17:08 +0200, Julia Lawall wrote:
> > The thermal_zone_of_device_ops structures are only passed as the
> > fourth
> > argument to thermal_zone_of_sensor_register or
> > devm_thermal_zone_of_sensor_register, both of which are declared as
> > const.
> > Thus the thermal_zone_of_device_ops structures themselves can be
> > const.
> >
> > v2: add structures passed to devm_thermal_zone_of_sensor_register
> > also.
> >
> > Done with the help of Coccinelle.
> >
> I don't see the patches changes out of drivers/thermal.
>
> As there is no dependencies between these patches, I guess I will only
> take patches that changes drivers/thermal.
No dependencies. Each individual patch was only sent to its maintainers.
julia
>
> thanks,
> rui
> > ---
> >
> > drivers/hwmon/hwmon.c | 2 +-
> > drivers/hwmon/scpi-hwmon.c | 2 +-
> > drivers/input/touchscreen/sun4i-ts.c | 2 +-
> > drivers/thermal/broadcom/bcm2835_thermal.c | 2 +-
> > drivers/thermal/hisi_thermal.c | 2 +-
> > drivers/thermal/qoriq_thermal.c | 2 +-
> > drivers/thermal/rcar_gen3_thermal.c | 2 +-
> > drivers/thermal/samsung/exynos_tmu.c | 2 +-
> > drivers/thermal/zx2967_thermal.c | 2 +-
> > 9 files changed, 9 insertions(+), 9 deletions(-)
> --
> To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-08-11 5:17 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-08 15:08 [PATCH 0/9 v2] constify thermal_zone_of_device_ops structures Julia Lawall
2017-08-08 15:09 ` [PATCH 8/9 v2] hwmon: (core) " Julia Lawall
2017-08-09 2:01 ` [8/9, " Guenter Roeck
2017-08-08 15:09 ` [PATCH 9/9 v2] hwmon: (scpi) " Julia Lawall
2017-08-09 2:02 ` [9/9, " Guenter Roeck
2017-08-11 3:36 ` [PATCH 0/9 v2] " Zhang Rui
2017-08-11 5:17 ` Julia Lawall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).