From patchwork Tue Jul 18 21:43:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 108194 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp6479900qge; Tue, 18 Jul 2017 14:44:40 -0700 (PDT) X-Received: by 10.98.142.1 with SMTP id k1mr3819531pfe.189.1500414280164; Tue, 18 Jul 2017 14:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500414280; cv=none; d=google.com; s=arc-20160816; b=mx6vrOLsw9WDuMnDDQkLw8BRGZI+puAbkgxEUuOn+F5lagquQ2lL6ZyGPlrYC7IZX4 x/D70QioHOH3j1i2nA5OXi9cLIaMG80q9CGwjFHtfhzFm28Svgk39O0a2TslXV5KaKaz mw8onffvi8b69oGtqdtaKVExaHUaKXpIVtPV4aFD9DrLbwRQhBiqQsCUeoV7BxFXfQ/m HG/DFe1AoUiwu4UU4J8Z/l6Nb8ux7s85sb/pG7owbPCZT5pgdzkSzt7W2po4Iqh4Mdfh t3APlkJh8pyCZwuNJ5lcPqiQImP1toHesz2+78+CBjYJM0B7/zAKpLTye93y9uFvKS1p 4cnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=8F4k5RpvBUdr5EexlL5aehjbl1gHUol7HEB6cTWzQw8=; b=ECo0CTxzeDd2hLMkfOaNetRxADhaiq1yyFdEMJaI9f07hNNfDtRD1heASnNvbhcUGH hiUWcv9kbBx9PWBTkJUAe3RX9FDMiaH/nfHTEoIC8LsWO69zCCTDbS605U9nUUGyetXs OedrKpFTCAEBbZiRYFElSfTtfOLodQxYDmvprsT+yPGrWU3Ze+CbDYurGCAU0LGzq3TM /iZ3HpfYHwbE6IcyFCfjkHQaD2/JuS5IJg+AUjIZPhMZf4MyEugf0EWwuxWxGEL0pz+h PtxkiWhKc1utNEyWYHerD9oKBz6leJT3KTj/dgoKv6qsH//a2fTSBNPVpKiByawHrM02 4jtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l27si2663590pgn.56.2017.07.18.14.44.39; Tue, 18 Jul 2017 14:44:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752431AbdGRVoh (ORCPT + 7 others); Tue, 18 Jul 2017 17:44:37 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:36253 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752785AbdGRVof (ORCPT ); Tue, 18 Jul 2017 17:44:35 -0400 Received: by mail-pg0-f67.google.com with SMTP id y129so4335110pgy.3; Tue, 18 Jul 2017 14:44:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=AJ2mWL8SChIQRcWVWK2RzaN5F8KRz6DVo48CO8oDoqE=; b=W6bseTX527XufI9W7eUh1ttGIgJwtpu0QsIuRB75oWqkHoAMtlKIUDjbi/usJef02x fkYv2wihT5xSbSUnDbR6ll4aR2oj+zS6iRuPy1TChVGsnmX4MNP3UbQxJSdHMbb0RhO/ 2CvkCGS1eYBDzSY4llHfV6Z258QNbghSPQr5J3c7eOO5OzvGPGO7OKZYlp89frop+hkI SxbR4gFffiR+OZYhShE0x/76GKECT55cECQBv7acnCT1ggwJz/TI88I+6Pelk4vDD5G0 L/RfCTQIXbLiG0+lp2N20YxPHEfS08PM0jnHuIL11IXueIBHjfnWSTxOLN/fNwXie7aF I2gA== X-Gm-Message-State: AIVw112nmazpNtqql0Po0/BOqRuLe5CL0bgE0mDDs8+XGe/+dETwPTlq xNVbULb977Mj7g== X-Received: by 10.99.124.5 with SMTP id x5mr3742747pgc.280.1500414274998; Tue, 18 Jul 2017 14:44:34 -0700 (PDT) Received: from localhost.localdomain (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.googlemail.com with ESMTPSA id r207sm7186560pfr.106.2017.07.18.14.44.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:44:34 -0700 (PDT) From: Rob Herring To: Richard Purdie , Jacek Anaszewski , Pavel Machek Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-leds@vger.kernel.org Subject: [PATCH] leds: Convert to using %pOF instead of full_name Date: Tue, 18 Jul 2017 16:43:11 -0500 Message-Id: <20170718214339.7774-31-robh@kernel.org> X-Mailer: git-send-email 2.11.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: Richard Purdie Cc: Jacek Anaszewski Cc: Pavel Machek Cc: linux-leds@vger.kernel.org --- drivers/leds/leds-is31fl32xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Pavel Machek diff --git a/drivers/leds/leds-is31fl32xx.c b/drivers/leds/leds-is31fl32xx.c index 478844c5cead..31a9d749c8be 100644 --- a/drivers/leds/leds-is31fl32xx.c +++ b/drivers/leds/leds-is31fl32xx.c @@ -348,8 +348,8 @@ static int is31fl32xx_parse_child_dt(const struct device *dev, ret = of_property_read_u32(child, "reg", ®); if (ret || reg < 1 || reg > led_data->priv->cdef->channels) { dev_err(dev, - "Child node %s does not have a valid reg property\n", - child->full_name); + "Child node %pOF does not have a valid reg property\n", + child); return -EINVAL; } led_data->channel = reg;