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: 145271 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp609867ljw; Mon, 27 Aug 2018 18:55:21 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbkPwj453KFXL7CdGw0xVIJaCtBY3bf1TxAULLVAXMFKr1tQp2UnwszlU+GufHe5qVU3EXg X-Received: by 2002:a63:2043:: with SMTP id r3-v6mr14520302pgm.105.1535421321021; Mon, 27 Aug 2018 18:55:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535421321; cv=none; d=google.com; s=arc-20160816; b=U2rYMEewH6jTiwpSrob1Gf3lERiBXKKhkWr3uAcBbpCNdvFWVtXoeCcwqGJe1veFEF 0VPVHY1pQFMlTpK25tiaKjG9iJjOpV+n1zKLoD0pOpEEPqyHu+J61hmgQKJa7AjfzZSu Il7ia8MN22IJZc3KAL9z1c2TlEgdey1q7JvETRo/LbJlWzl2o8DRciHUM/KhDBi4m6ah 09lU5GFiHxwD/05vEIzKIDtTezWrBkc4QM0je3DTHRbi5FVkFPSNFSkyIa33+XebFM1g a+tRJoMXRM/xFbNa11gz5bkWf0wW+5ybNYktH2O/8tulIS4mKNok+5tTwytwOtAxDRkW yxfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=jTa+u2rLU64NAA1Mli/IvknEIrrX9W/VQjvhlHArq/Y=; b=QeXysfXl0MlRaep9Vdz+HvgJPdjCvTETtBNrdmXsP7U2drm/JXXWpDUDvIwrlzZuF4 Nx7jgz2fGsJQJqi8XoNUt1FRdXi1cB9dSpPR6jBzuIeWLSd9dttYpfObeUr4Sr7/7HJA 4V/ztdQ8P3g/dUbN7nA6sKQXf8APzks+jhap5KMto207PLj+Ebc6K1F04qodzbuIKrA2 66IblqteYfKLXLndF276LHFNa5U+yXHi+ItCJ66Lo4zfJjlBiajJj3iNzq9E+e8SFO8C 0vk18sfEQbBYlab5UVCCjsZxv9ta/WcwBF/C0mO4azsYrKuzucqV4CSmupt/7zl8b2X1 8oGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d36-v6si856089pla.446.2018.08.27.18.55.20; Mon, 27 Aug 2018 18:55:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728179AbeH1Fod (ORCPT + 32 others); 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-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.17.1 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) {