[PATCH v2] pinctrl: make of_device_ids const

Linus Walleij linus.walleij at linaro.org
Tue Apr 7 02:09:57 PDT 2015


On Thu, Mar 26, 2015 at 11:00 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>

I already have a patch like this from Fabian Frederick in my
devel branch.

If some instances were missed by that patch please correct these
and send a patch on top of my devel branch.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list