From patchwork Tue Aug 28 01:52:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 145284 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp611450ljw; Mon, 27 Aug 2018 18:57:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZD4YGqqpQ5RzPczKar+BKb4IedtebCynRfzRVOf9ZrHmeu40RrPcabNgpPp8WcySPNP4zU X-Received: by 2002:a63:5815:: with SMTP id m21-v6mr14339238pgb.78.1535421464434; Mon, 27 Aug 2018 18:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535421464; cv=none; d=google.com; s=arc-20160816; b=FDhHGjpAmkSAn1J4Xe2/KQQIY9S8a0vxVoXBDYvkXCNavfnk6Cd2lFR0NG7PmWPVkR g6lj81grdM366ny+XgstHPxSqaBlJREGkuQUbarpFal/u17pMIpFlRNluDAu0lFcXirE yn7Law0FNWXNAsP/OvHFGDEVJVBmkUnjIVNfyDiwdctClTLwvWyZn04TrntubhTTIZOK 47Fu3+BnML5vw5uqrQi2p4URaevQnHUWHmKOKXwQ/ZcfFCdqoUh7p81bBQ2Zqx+anQW4 BNQ0u0UIGWx0F/rz/uwyCYEp3Ra8SJ7nq4YYgJBFfhVZsmLIs1+ilKGM/bulpCwwB/iC VA1A== 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=xICQgXXNh+bEKVkznGau3uNnEHJJPk53QNNxMeb1nrE=; b=T62rqNe3sabVtf1g4fKS8xygSyLvwR+d5OmECyb1dLtexbMO76j4HVH24f3NPtLJtJ AKDhWfxlzaFPAGJcTLfUx1ehjfqNBcTFMPPaS62Qa9xhi5oo/FhKCAkgkGTXKHR+BcOm +w/+GV6Hj5ovS1DD2EV3+Zlcj8uPhJTP8QLtKGlBj+eCNv+hnQ4WKvjoBAaJ/wgClTms K2ZThkfU9x2Q2FlDonmtVb497qIm9DzOaEqyJyjGwbv8QCIe4speNQO0hv1eoxN9Y+wD IDy4Xlr81sv41iHZh+OOQGuO/YAWp3bY5tV6/ALm0Fod9ptQCpKz01D5+mLFAus/cX+l FJjw== 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 1-v6si895773pgb.107.2018.08.27.18.57.44; Mon, 27 Aug 2018 18:57:44 -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 S1727408AbeH1Fq6 (ORCPT + 32 others); Tue, 28 Aug 2018 01:46:58 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:46612 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727561AbeH1FoI (ORCPT ); Tue, 28 Aug 2018 01:44:08 -0400 Received: by mail-oi0-f65.google.com with SMTP id y207-v6so1684140oie.13; Mon, 27 Aug 2018 18:54:52 -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=xICQgXXNh+bEKVkznGau3uNnEHJJPk53QNNxMeb1nrE=; b=OjLaZ7aRcqr9zhF3p6ftwE3+ZMHiUGJ4DXOeWhqrm79rdAVoKi/UvWamGYtqNHUAHO G8gQrO1JBtnqoTcQ8CDCYw0mO5/bNS6/t+7mo1wt8yimRaoQ6ElwNBJ7jYiidReHT388 aosHUA5KrsToHdrY5N2Kqvkm0lut/hnAfNeh0RNuABu3jzHcgVVc8lmAcr23uNYS2M4z uB1fhPhxEuNyxR2PrirckFC+9azNQaDtJQX0XY4BTI30jhLXA0wJMZYZ42ZwlQ+8FgKR 1/ZhBVINCLTeQWNLbYj/UqVjENHeX7hzHNdyDb1HNQ0tgK4tKuLwez7G6LZkNy76D2tU xxSA== X-Gm-Message-State: APzg51BO9C/RbQlq+5mDJxrNCDDukpqQQGUnXXv5oaHfL6O8PHAE+Ybz gnwwDuK/Ksc7jdh7XY54prueCqk= X-Received: by 2002:aca:e350:: with SMTP id a77-v6mr1132597oih.250.1535421291711; Mon, 27 Aug 2018 18:54:51 -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.54.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 18:54:51 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org Cc: Sakari Ailus , Jacek Anaszewski , Pavel Machek , linux-leds@vger.kernel.org Subject: [PATCH] leds: Convert to using %pOFn instead of device_node.name Date: Mon, 27 Aug 2018 20:52:26 -0500 Message-Id: <20180828015252.28511-25-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: Sakari Ailus Cc: Jacek Anaszewski Cc: Pavel Machek Cc: linux-leds@vger.kernel.org Signed-off-by: Rob Herring --- drivers/leds/leds-as3645a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/leds/leds-as3645a.c b/drivers/leds/leds-as3645a.c index f883616d9e60..98a69b1a43f9 100644 --- a/drivers/leds/leds-as3645a.c +++ b/drivers/leds/leds-as3645a.c @@ -529,7 +529,7 @@ static int as3645a_parse_node(struct as3645a *flash, strlcpy(names->flash, name, sizeof(names->flash)); else snprintf(names->flash, sizeof(names->flash), - "%s:flash", node->name); + "%pOFn:flash", node); rval = of_property_read_u32(flash->flash_node, "flash-timeout-us", &cfg->flash_timeout_us); @@ -573,7 +573,7 @@ static int as3645a_parse_node(struct as3645a *flash, strlcpy(names->indicator, name, sizeof(names->indicator)); else snprintf(names->indicator, sizeof(names->indicator), - "%s:indicator", node->name); + "%pOFn:indicator", node); rval = of_property_read_u32(flash->indicator_node, "led-max-microamp", &cfg->indicator_max_ua);