[PATCH] drivers/base: Mark (of|platform)_device_id data as constant

Sascha Hauer s.hauer at pengutronix.de
Tue Apr 14 22:30:16 PDT 2015


On Tue, Apr 14, 2015 at 10:00:47PM +0200, Uwe Kleine-König wrote:
> There should be no reason to ever change the data pointed to by id_table
> or of_compatible. So make this offical by adding some 'const's.
> 
> In Linux the corresponding pointers are marked as const, too.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> ---
> Build tested on arm/mvebu+am33xx only

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list