[PATCH] pinctrl: make of_device_ids const

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Thu Sep 11 06:15:18 PDT 2014


On Thu, Sep 11, 2014 at 03:07:55PM +0200, Linus Walleij wrote:
> On Wed, Sep 10, 2014 at 10:20 PM, Uwe Kleine-König
> <u.kleine-koenig at pengutronix.de> wrote:
> 
> > of_device_ids (i.e. compatible strings and the respective data) are not
> > supposed to change at runtime. All functions working with of_device_ids
> > provided by <linux/of.h> work with const of_device_ids. This allows to
> > mark all struct of_device_id below drivers/pinctrl const, too.
> >
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> 
> Sorry! This low-hanging fruit was already picked by Kiran by an
I wouldn't call it low-hanging fruit because verification that nothing
breaks is manual work. :-\

Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |



More information about the linux-arm-kernel mailing list