Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6554585imm; Mon, 27 Aug 2018 18:57:33 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZZ83KbosqORel+0tuMI9SSy3GUkerdAe5ThynCj6NCWGLxVc0d6OsD+y2P/CHsb7U/arYM X-Received: by 2002:a63:a441:: with SMTP id c1-v6mr14577019pgp.182.1535421453869; Mon, 27 Aug 2018 18:57:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535421453; cv=none; d=google.com; s=arc-20160816; b=slEB3Xx/ok8DbM6/g0uIkzSwGxlAvTEc/DlR3XqHMdsXS8RD4GKtwZgxh4Y2hSFtdd Wvp5v0CmrjpezIoL7RjnG3CQNZm5qw6/iwT4uMRojApGMmhIcd0ZzpRkomfdD7Ddae0i 7yWfkHqi3nqnkozl2CIMb2QkjSTJlC0pxv8rMY/o2UqOi054/BV+Zdrn4p7spbNhtTxK j0xEIExz8qh5gc4mPhni+h+YV5eTxuHWKRqvNSt6fzx7T2hWa6yFk8wiM4xVvQffxkYm gg5nECWPLHxMUxhoCRkCvj64wdMAFp07DbvYZWzcQGmpYRVT+isQId6efwKWeTmxn0Wc ff7A== 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 u8-v6si883708plh.492.2018.08.27.18.57.18; Mon, 27 Aug 2018 18:57:33 -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 S1728176AbeH1Fod (ORCPT + 99 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(-) 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) { -- 2.17.1