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 X-Patchwork-Id: 10577787 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 70EEB139B for ; Tue, 28 Aug 2018 01:55:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5FF7E29A72 for ; Tue, 28 Aug 2018 01:55:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 53DE729A79; Tue, 28 Aug 2018 01:55:20 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0595E29A72 for ; Tue, 28 Aug 2018 01:55:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D1D296E2D2; Tue, 28 Aug 2018 01:55:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-oi0-f65.google.com (mail-oi0-f65.google.com [209.85.218.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 86A356E2D2 for ; Tue, 28 Aug 2018 01:55:17 +0000 (UTC) Received: by mail-oi0-f65.google.com with SMTP id c190-v6so15999oig.6 for ; 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=T9GtcA7aBhdTD6tmJ+mBLtbL17ZQdOp9kP4TUqQ2gmXql9nbiUtfyFukPtqdpYYA5U LvWy1DB4T1sLNybjUz+lWoqqxMmQPIV8/M5oA5osr39Hzqs5hnAXJA/fCkU/wLq79iC6 NiDMJ8g2GdP9/mJKf0YXyY+nVF1cPTQyNOMjizuJ/to2H/gfVDiSKE5adp1V5mqbMBA8 HEbSC9CvCXsFrEEekbyldlXS1+3Zz3rZeH5fnDzlsRgf7n4jNiY7tPKfA2kIOsRQc8ZT JuLKZ0kNoImFw2mM6YHWsF9ITPfSTJrE9OFlc7t66STlaM7LoOVylXQW5wSsN3S46j5n i5Kg== X-Gm-Message-State: APzg51DO0EUai4kUPfQMze6RmyCivE3JepF+3SFe5Wo2M3bI207lCjy0 pAushJ46k3Mi19tw1qEksOJ56NA= 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 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> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Thompson , Bartlomiej Zolnierkiewicz , Jingoo Han , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Lee Jones MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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) {