Re: [PATCH 3/7] pinctrl: pinconf-generic: Allow driver to specify DT params

From: Geert Uytterhoeven
Date: Mon Nov 03 2014 - 14:12:58 EST


On Mon, Nov 3, 2014 at 8:05 PM, Soren Brinkmann
<soren.brinkmann@xxxxxxxxxx> wrote:
> --- a/include/linux/pinctrl/pinctrl.h
> +++ b/include/linux/pinctrl/pinctrl.h

> @@ -117,6 +118,8 @@ struct pinctrl_ops {
> * @confops: pin config operations vtable, if you support pin configuration in
> * your driver
> * @owner: module providing the pin controller, used for refcounting
> + * @num_dt_params: Number of driver-specifid DT parameters

driver-specific

> + * @params: List of DT parameters

Missing @conf_items documentation.

> */
> struct pinctrl_desc {
> const char *name;
> @@ -126,6 +129,11 @@ struct pinctrl_desc {
> const struct pinmux_ops *pmxops;
> const struct pinconf_ops *confops;
> struct module *owner;
> +#if defined(CONFIG_GENERIC_PINCONF) && defined(CONFIG_OF)
> + unsigned int num_dt_params;
> + const struct pinconf_generic_dt_params *params;
> + const struct pin_config_item *conf_items;
> +#endif

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/