Thread (42 messages) 42 messages, 6 authors, 2014-11-27

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

From: geert@linux-m68k.org (Geert Uytterhoeven)
Date: 2014-11-03 19:12:53
Also in: linux-sh, lkml

On Mon, Nov 3, 2014 at 8:05 PM, Soren Brinkmann
[off-list ref] wrote:
quoted hunk ↗ jump to hunk
--- a/include/linux/pinctrl/pinctrl.h
+++ b/include/linux/pinctrl/pinctrl.h
quoted hunk ↗ jump to hunk
@@ -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.
quoted hunk ↗ jump to hunk
  */
 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 at linux-m68k.org

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help