From: Uwe Kleine-König Date: Thu, 7 Jun 2012 10:20:14 +0000 (+0200) Subject: of: add const to struct *of_device_id.data X-Git-Tag: next-20120725~11^2^2^2~6 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=98d7bbb9929bcc14e11ac8a55245a4f2dc174e17;p=karo-tx-linux.git of: add const to struct *of_device_id.data Drivers should never need to modify the data of a device id. So it can be const which in turn allows more consts in the driver. Acked-by: Greg Kroah-Hartman Signed-off-by: Uwe Kleine-König --- diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 5db93821f9c7..98fb3fef45fc 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -224,7 +224,7 @@ struct of_device_id char type[32]; char compatible[128]; #ifdef __KERNEL__ - void *data; + const void *data; #else kernel_ulong_t data; #endif