[PATCH 19/25] of: add const to struct *of_device_id.data

2012-07-23 Thread Uwe Kleine-König
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.

Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de
---
 include/linux/mod_devicetable.h |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
index 5db9382..98fb3fe 100644
--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -224,7 +224,7 @@ struct of_device_id
chartype[32];
charcompatible[128];
 #ifdef __KERNEL__
-   void*data;
+   const void *data;
 #else
kernel_ulong_t data;
 #endif
-- 
1.7.10.4

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 19/25] of: add const to struct *of_device_id.data

2012-07-23 Thread Greg Kroah-Hartman
On Mon, Jul 23, 2012 at 11:13:24AM +0200, Uwe Kleine-König wrote:
 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.
 
 Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de

Acked-by: Greg Kroah-Hartman gre...@linuxfoundation.org
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html