Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6556257imm; Mon, 27 Aug 2018 19:00:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZOUlqp3TA8gHuyeekXYnBlKNB4ltbU8Y+ozIvdppY9Gth5uyTHnGYwy//cTGhu+fRfO8tY X-Received: by 2002:a17:902:8605:: with SMTP id f5-v6mr15110046plo.271.1535421614446; Mon, 27 Aug 2018 19:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535421614; cv=none; d=google.com; s=arc-20160816; b=X+XWLgigxklXuhBGkpiT3HFsaNqvPNaVvNaJQhlCKOz++mctpMtgKM7ph5a65vQIHf tzVROG72AT3E+m0fBl3xcTS6iTTjlV2qe1S7lN+FWm0V+B7S0hzLRJvR5XoS5eh63fAv 8UuKxTxfD8U3tV0+PHWOI6eTQNA4jwqY37t1blvbn/afbTqIIfL1SaXBexTx9OIwO0Sq V+fekmA133uVa1Gi7vZwAgrI8d7p8vHO/H7jv6XXjh/+SVo89/dwEwockeVkM4k9GIJf uqdgr/cDRk7rPKIKJm3yX39ipLxpIqmkkjoUqH3AIKRAOT9Xy5TQvZNoWWG76pFiSw+N fhqQ== 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 15-v6si943144pgu.205.2018.08.27.18.59.59; Mon, 27 Aug 2018 19:00:14 -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 S1727392AbeH1Fq6 (ORCPT + 99 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(-) 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); -- 2.17.1