From: Domenico Andreoli <cavokz@gmail.com>
To: Linus Walleij <linus.walleij@stericsson.com>
Cc: linux-kernel@vger.kernel.org, Stephen Warren <swarren@nvidia.com>,
Grant Likely <grant.likely@secretlab.ca>,
Barry Song <21cnbao@gmail.com>,
Shawn Guo <shawn.guo@freescale.com>,
Thomas Abraham <thomas.abraham@linaro.org>,
Dong Aisheng <dong.aisheng@linaro.org>,
Rajendra Nayak <rajendra.nayak@linaro.org>,
Haojian Zhuang <haojian.zhuang@marvell.com>,
Linus Walleij <linus.walleij@linaro.org>
Subject: Re: [PATCH v6] pinctrl: add a pin config interface
Date: Mon, 12 Dec 2011 11:56:50 +0100 [thread overview]
Message-ID: <20111212105650.GA5798@glitch> (raw)
In-Reply-To: <1323431857-8828-1-git-send-email-linus.walleij@stericsson.com>
Hi,
On Fri, Dec 09, 2011 at 12:57:37PM +0100, Linus Walleij wrote:
>
> This add per-pin and per-group pin config interfaces for biasing,
> driving and other such electronic properties. The details of passed
> configurations are passed in an opaque unsigned long which may be
> dereferences to integer types, structs or lists on either side
> of the configuration interface.
[...]
> diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h
> index f17fac4..4ad5043 100644
> --- a/include/linux/pinctrl/pinctrl.h
> +++ b/include/linux/pinctrl/pinctrl.h
> @@ -21,6 +21,7 @@
>
> struct pinctrl_dev;
> struct pinmux_ops;
> +struct pinconf_ops;
> struct gpio_chip;
>
> /**
> @@ -97,7 +98,9 @@ struct pinctrl_ops {
> * but may be equal to npins if you have no holes in the pin range.
> * @pctlops: pin control operation vtable, to support global concepts like
> * grouping of pins, this is optional.
> - * @pmxops: pinmux operation vtable, if you support pinmuxing in your driver
> + * @pmxops: pinmux operations vtable, if you support pinmuxing in your driver
> + * @confops: pin config operations vtable, if you support pin configuration in
> + * your driver
> * @owner: module providing the pin controller, used for refcounting
> */
> struct pinctrl_desc {
> @@ -107,6 +110,7 @@ struct pinctrl_desc {
> unsigned int maxpin;
> struct pinctrl_ops *pctlops;
> struct pinmux_ops *pmxops;
> + struct pinconf_ops *confops;
> struct module *owner;
> };
>
> @@ -123,9 +127,7 @@ extern const char *pinctrl_dev_get_name(struct pinctrl_dev *pctldev);
> extern void *pinctrl_dev_get_drvdata(struct pinctrl_dev *pctldev);
> #else
>
> -struct pinctrl_dev;
this introduces a warning in case CONFIG_PINCTRL is not enabled.
> -
> -/* Sufficiently stupid default function when pinctrl is not in use */
> +/* Sufficiently stupid default functions when pinctrl is not in use */
> static inline bool pin_is_valid(struct pinctrl_dev *pctldev, int pin)
> {
> return pin >= 0;
cheers,
Domenico
next prev parent reply other threads:[~2011-12-12 10:56 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-09 11:57 [PATCH v6] pinctrl: add a pin config interface Linus Walleij
2011-12-12 6:19 ` Haojian Zhuang
2011-12-13 0:22 ` Linus Walleij
2011-12-13 7:21 ` Haojian Zhuang
2011-12-13 12:23 ` Linus Walleij
2011-12-13 21:49 ` Stephen Warren
2011-12-13 22:56 ` Linus Walleij
2011-12-12 10:56 ` Domenico Andreoli [this message]
2011-12-13 12:19 ` Linus Walleij
2011-12-14 7:04 ` Chanho Park
2011-12-14 9:05 ` Linus Walleij
2011-12-14 15:44 ` Stephen Warren
2011-12-14 19:37 ` Linus Walleij
2012-01-18 7:16 ` Thomas Abraham
2012-01-19 16:58 ` Linus Walleij
2012-01-19 18:14 ` Thomas Abraham
[not found] ` <CAJuYYwTP8a4KYDrJ2o9Wmt4jo_DvLviy75T90JnV7Hw10Y+ZXw@mail.gmail.com>
[not found] ` <CACRpkdYwx3O42aC8F+DMV1GL0ce62ZhChOQYdbd7-syunsgBOg@mail.gmail.com>
2012-01-20 15:59 ` Thomas Abraham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111212105650.GA5798@glitch \
--to=cavokz@gmail.com \
--cc=21cnbao@gmail.com \
--cc=dong.aisheng@linaro.org \
--cc=grant.likely@secretlab.ca \
--cc=haojian.zhuang@marvell.com \
--cc=linus.walleij@linaro.org \
--cc=linus.walleij@stericsson.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rajendra.nayak@linaro.org \
--cc=shawn.guo@freescale.com \
--cc=swarren@nvidia.com \
--cc=thomas.abraham@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.