linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9 v2] constify thermal_zone_of_device_ops structures
@ 2017-08-08 15:08 Julia Lawall
  2017-08-08 15:09 ` [PATCH 6/9 v2] Input: sun4i-ts - " Julia Lawall
  2017-08-11  3:36 ` [PATCH 0/9 v2] " Zhang Rui
  0 siblings, 2 replies; 5+ 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] 5+ messages in thread

end of thread, other threads:[~2017-08-15  5:10 UTC | newest]

Thread overview: 5+ 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 6/9 v2] Input: sun4i-ts - " Julia Lawall
2017-08-15  5:10   ` Dmitry Torokhov
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).