mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
From: patrice.chotard@st.com (Patrice CHOTARD)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH] pinctrl: Convert to using %pOFn instead of device_node.name
Date: Mon, 3 Sep 2018 09:57:11 +0000	[thread overview]
Message-ID: <3335422d-0b46-fde6-d172-005ba9b60d76@st.com> (raw)
In-Reply-To: <20180828015252.28511-40-robh@kernel.org>

Hi Rob

On 08/28/2018 03:52 AM, Rob Herring wrote:
> In preparation to remove the node name pointer from struct device_node,
> convert printf users to use the %pOFn format specifier.
> 
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: Dong Aisheng <aisheng.dong@nxp.com>
> Cc: Fabio Estevam <festevam@gmail.com>
> Cc: Shawn Guo <shawnguo@kernel.org>
> Cc: Stefan Agner <stefan@agner.ch>
> Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
> Cc: Sean Wang <sean.wang@mediatek.com>
> Cc: Matthias Brugger <matthias.bgg@gmail.com>
> Cc: Carlo Caione <carlo@caione.org>
> Cc: Kevin Hilman <khilman@baylibre.com>
> Cc: Jason Cooper <jason@lakedaemon.net>
> Cc: Andrew Lunn <andrew@lunn.ch>
> Cc: Gregory Clement <gregory.clement@bootlin.com>
> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
> Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
> Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
> Cc: Heiko Stuebner <heiko@sntech.de>
> Cc: Tony Lindgren <tony@atomide.com>
> Cc: Haojian Zhuang <haojian.zhuang@linaro.org>
> Cc: Patrice Chotard <patrice.chotard@st.com>
> Cc: Barry Song <baohua@kernel.org>
> Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
> Cc: Alexandre Torgue <alexandre.torgue@st.com>
> Cc: Maxime Ripard <maxime.ripard@bootlin.com>
> Cc: Chen-Yu Tsai <wens@csie.org>
> Cc: linux-gpio at vger.kernel.org
> Cc: linux-mediatek at lists.infradead.org
> Cc: linux-arm-kernel at lists.infradead.org
> Cc: linux-amlogic at lists.infradead.org
> Cc: linux-rockchip at lists.infradead.org
> Cc: linux-omap at vger.kernel.org
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>   drivers/pinctrl/berlin/berlin.c               |  6 ++--
>   drivers/pinctrl/freescale/pinctrl-imx.c       |  7 ++--
>   drivers/pinctrl/freescale/pinctrl-imx1-core.c | 12 +++----
>   drivers/pinctrl/mediatek/pinctrl-mtk-common.c |  4 +--
>   drivers/pinctrl/meson/pinctrl-meson.c         |  2 +-
>   drivers/pinctrl/mvebu/pinctrl-mvebu.c         |  4 +--
>   drivers/pinctrl/nomadik/pinctrl-nomadik.c     |  6 ++--
>   drivers/pinctrl/pinctrl-at91.c                |  8 ++---
>   drivers/pinctrl/pinctrl-lantiq.c              |  8 ++---
>   drivers/pinctrl/pinctrl-rockchip.c            |  8 ++---
>   drivers/pinctrl/pinctrl-rza1.c                |  8 ++---
>   drivers/pinctrl/pinctrl-single.c              | 32 +++++++++----------
>   drivers/pinctrl/pinctrl-st.c                  |  6 ++--
>   drivers/pinctrl/sirf/pinctrl-atlas7.c         |  4 +--
>   drivers/pinctrl/stm32/pinctrl-stm32.c         |  4 +--
>   drivers/pinctrl/sunxi/pinctrl-sunxi.c         |  8 ++---
>   drivers/pinctrl/ti/pinctrl-ti-iodelay.c       |  8 ++---
>   17 files changed, 66 insertions(+), 69 deletions(-)
> 
> diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c
> index 0966bb0bf71f..e66af93f2cbf 100644
> --- a/drivers/pinctrl/pinctrl-st.c
> +++ b/drivers/pinctrl/pinctrl-st.c
> @@ -817,8 +817,8 @@ static int st_pctl_dt_node_to_map(struct pinctrl_dev *pctldev,
>   
>   	grp = st_pctl_find_group_by_name(info, np->name);
>   	if (!grp) {
> -		dev_err(info->dev, "unable to find group for node %s\n",
> -			np->name);
> +		dev_err(info->dev, "unable to find group for node %pOFn\n",
> +			np);
>   		return -EINVAL;
>   	}
>   
> @@ -1184,7 +1184,7 @@ static int st_pctl_dt_parse_groups(struct device_node *np,
>   		if (pp->length / sizeof(__be32) >= OF_GPIO_ARGS_MIN) {
>   			npins++;
>   		} else {
> -			pr_warn("Invalid st,pins in %s node\n", np->name);
> +			pr_warn("Invalid st,pins in %pOFn node\n", np);
>   			return -EINVAL;
>   		}
>   	}

For pinctrl-st:

Acked-by: Patrice Chotard <patrice.chotard@st.com>

Thanks
Patrice

  parent reply	other threads:[~2018-09-03  9:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180828015252.28511-1-robh@kernel.org>
2018-08-28  1:52 ` Rob Herring
2018-08-28  1:57   ` A.s. Dong
2018-08-28  7:21   ` Alexandre Belloni
2018-08-28 15:34   ` Tony Lindgren
2018-08-29  2:13   ` Sean Wang
2018-08-29  2:15   ` Chen-Yu Tsai
2018-08-29  8:31   ` Heiko Stübner
2018-08-29 12:07   ` Linus Walleij
2018-09-03  9:57   ` Patrice CHOTARD [this message]
2018-08-28  1:52 ` [PATCH] ASoC: " Rob Herring
2018-08-28  7:57   ` Andy Shevchenko

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=3335422d-0b46-fde6-d172-005ba9b60d76@st.com \
    --to=patrice.chotard@st.com \
    --cc=linus-amlogic@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®