From patchwork Tue Aug 28 01:52:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 10577797 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1787313B8 for ; Tue, 28 Aug 2018 01:55:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F237A29A74 for ; Tue, 28 Aug 2018 01:55:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E642D29A7C; Tue, 28 Aug 2018 01:55:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8717B29A74 for ; Tue, 28 Aug 2018 01:55:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727476AbeH1Fod (ORCPT ); Tue, 28 Aug 2018 01:44:33 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:38045 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728135AbeH1Fod (ORCPT ); Tue, 28 Aug 2018 01:44:33 -0400 Received: by mail-oi0-f67.google.com with SMTP id x197-v6so22063oix.5; Mon, 27 Aug 2018 18:55:17 -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:in-reply-to :references; bh=jTa+u2rLU64NAA1Mli/IvknEIrrX9W/VQjvhlHArq/Y=; b=hfQX6sOtF1+T/7B9wfzZxV6VIxs7m5P5ewe80NS9FJvhJiaLI8g5KPI5GZ4+Q+i4KI KwOKkqxHo9bb9xCzDrhRxJZO/cVbWLOwa+du1lhgHzoyeymyUF3NDWSr0X2LQoNjGxlf zmSPFrPRvF/ob8YlXYPG3APsolECU8swgPwN7e6JJsK28yW18BFCt4Bia1jYROsEVYBb 0rz4GGfu68y/9yRkoRdIT8zAByT6egaySIYuOqXrWYlJP9ZxvAfZRjRJrNUwLw5aBBmj vilKPFf8A9GMUvcOabLYiNsuZwRqWZrY0S+15HdcQ13+KAqafYdxJ7rUYOg1RIZv+uwJ WfrA== X-Gm-Message-State: APzg51Cxng1kFKgfJQYXjeeIpz/kitqgyyWA2EzO0rUw7pGoPY1+VVfj 8oReXtU4/hmpgEByqIje/dfGWcg= X-Google-Smtp-Source: ANB0VdYPFSIzd4zwIp046usWhNz3sNef89OWt6XDAcStLlwT2a2cDnbwARAy8WksvdWEvLnpOKB9tg== X-Received: by 2002:aca:3003:: with SMTP id w3-v6mr360462oiw.231.1535421316868; Mon, 27 Aug 2018 18:55:16 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id n71-v6sm1652696oig.48.2018.08.27.18.55.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 18:55:16 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org Cc: Lee Jones , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: [PATCH] backlight: pm8941: Convert to using %pOFn instead of device_node.name Date: Mon, 27 Aug 2018 20:52:49 -0500 Message-Id: <20180828015252.28511-48-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180828015252.28511-1-robh@kernel.org> References: <20180828015252.28511-1-robh@kernel.org> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo Han Cc: Bartlomiej Zolnierkiewicz Cc: dri-devel@lists.freedesktop.org Cc: linux-fbdev@vger.kernel.org Signed-off-by: Rob Herring --- drivers/video/backlight/pm8941-wled.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/pm8941-wled.c b/drivers/video/backlight/pm8941-wled.c index 0b6d21955d91..da6aab20fdcb 100644 --- a/drivers/video/backlight/pm8941-wled.c +++ b/drivers/video/backlight/pm8941-wled.c @@ -330,7 +330,7 @@ static int pm8941_wled_configure(struct pm8941_wled *wled, struct device *dev) rc = of_property_read_string(dev->of_node, "label", &wled->name); if (rc) - wled->name = dev->of_node->name; + wled->name = devm_kasprintf(dev, GFP_KERNEL, "%pOFn", dev->of_node); *cfg = pm8941_wled_config_defaults; for (i = 0; i < ARRAY_SIZE(u32_opts); ++i) {