]> git.baikalelectronics.ru Git - kernel.git/commit
Input: sun4i-ts - constify thermal_zone_of_device_ops structures
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 15 Aug 2017 05:10:11 +0000 (22:10 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 15 Aug 2017 05:12:06 +0000 (22:12 -0700)
commit0ae93800fb76a07b899c415399287809d45d6f57
tree05dfae1f3fe3549ec3e30bdc9ed4d65ea70f2894
parent88f5085018040ebc2d8eb056b7d707d74aac40c9
Input: sun4i-ts - constify thermal_zone_of_device_ops structures

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>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/sun4i-ts.c