alistair23-linux/drivers/power/reset
Julia Lawall 8eb96f136f power: reset: account for const type of of_device_id.data
This driver creates a const structure that it stores in the data
field of an of_device_id array.

Add const to the declaration of the location that receives a value
from the data field to ensure that the compiler will continue to check
that the value is not modified and remove the const-dropping cast on
the access to the data field.

Done using Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
2018-01-08 18:40:57 +01:00
..
arm-versatile-reboot.c
as3722-poweroff.c
at91-poweroff.c
at91-reset.c
at91-sama5d2_shdwc.c power: reset: account for const type of of_device_id.data 2018-01-08 18:40:57 +01:00
axxia-reset.c
brcm-kona-reset.c
brcmstb-reboot.c
gemini-poweroff.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
gpio-poweroff.c
gpio-restart.c
hisi-reboot.c
Kconfig power: reset: remove unused imx-snvs-poweroff driver 2018-01-08 18:09:25 +01:00
keystone-reset.c
ltc2952-poweroff.c
Makefile power: reset: remove unused imx-snvs-poweroff driver 2018-01-08 18:09:25 +01:00
msm-poweroff.c power: reset: msm: Clarify restart and poweroff 2018-01-08 18:04:43 +01:00
piix4-poweroff.c Update MIPS email addresses 2017-11-03 09:02:30 -07:00
qnap-poweroff.c
reboot-mode.c
restart-poweroff.c
rmobile-reset.c
st-poweroff.c
syscon-poweroff.c
syscon-reboot-mode.c
syscon-reboot.c
vexpress-poweroff.c
xgene-reboot.c
zx-reboot.c power: reset: zx-reboot: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE 2017-12-01 16:10:48 +01:00