Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7519058imm; Tue, 28 Aug 2018 13:38:35 -0700 (PDT) X-Google-Smtp-Source: ANB0VdboA2SbAteiiUgprzpFpcGhgJs3LhSoLgJo5Xob6vpBRRWB4WGTex37zN4o7jVLMqFPuVf7 X-Received: by 2002:a63:804a:: with SMTP id j71-v6mr1190221pgd.171.1535488715258; Tue, 28 Aug 2018 13:38:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535488715; cv=none; d=google.com; s=arc-20160816; b=bU4hpQplbemss8vYAqtaqW3KquebZ8lkOJAr7l+9Kt/F9PNmGeXFVghhiEZgWQDTnD hDlUvlBDCWIL69CGeeiNG+0h/pqH7cbN3cRQ5EkwRWnaBxF3u3K67Xr+A6v9w7/VRkWA /mREMZPMyQWqFEOtKTDJv727wWA+0+fxvTD1HN1GYHD8+dTdg3F1ds66o+Kxoro8iBBU ZI0n6TOSAPXu72ow3q/lkvVbfPVwALeks8Qf2VUrUVBmqAM+oiwm5CVMgAaVAHyu/srB Bx/u+xkddV6CBcymXdv6MPxc97djyIhrtjpAkgMQQEZzCvP6gtOQ+Uc05aAnNCsMuQgp j9Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=G+A+K40XdK+l9Obs2EooWbLOTs6QBLllS8qbbxu4G+A=; b=La47JmoAcBysxkS05CYm7azis/i3ks66RlX6JPFwxwmQMoH04pprbe2lGzWl6pmpqv E+1RLDhUiadef4JTBb4XHMMkqPMjZXvWzXeh21uTI8zElpS+E20MqleutPFvWi/ANRka hRwBOy5KTJ7/6ny02cwpaSfuTuAFF/Nhaou+FlrIvN+A1NbQ9jqBzugMeuTYuFmpo4k7 rEVz5VnwoJnJ0RtlUX1Az0hHEqmugF8YD169f8l1ssyicPOIA0VJ7JVNf9O4ym3tt/KK 17MHGTEJ4nXQh7MmnvE8TFkiY7TmUOUun5vS920IajnJJi5vvtLnPp1wlwBPA7xBdn4Q ZLIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RsspPom5; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5-v6si1646157pgc.459.2018.08.28.13.38.18; Tue, 28 Aug 2018 13:38:35 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RsspPom5; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727217AbeH2Aa2 (ORCPT + 99 others); Tue, 28 Aug 2018 20:30:28 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46240 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727125AbeH2Aa2 (ORCPT ); Tue, 28 Aug 2018 20:30:28 -0400 Received: by mail-wr1-f65.google.com with SMTP id a108-v6so2733991wrc.13; Tue, 28 Aug 2018 13:37:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=G+A+K40XdK+l9Obs2EooWbLOTs6QBLllS8qbbxu4G+A=; b=RsspPom5cZbeBu8X+Z54eNmu5GFCEu/TK2SeL+3hnhWa0W83vnoqd7qQo+I5bzGEiJ 9EV/7dZPwoery+we84VqgBth1jn3XgsO7BpHNwv5u0/LS8Nw/5FPcyT68/TB11pUbhjo JYSVnqRZEv8R9VvRvSWvpOePQfimZkmnVak8qlwFvJSJEkIPtBScpvPs1HZfFoNS7Btn bSedCe3f/cs6gg725cZgq2zuctb1EHgXiUiiXFDOpMoBwG8aeB7hivpiGwDsoqPhRNZF mZPGD7BwI3BJdyGUv1DpUBcn9vZTirI3MXZaQqTUtS0Ml5tRYAhm/XqQOmajrhr77ng7 98YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=G+A+K40XdK+l9Obs2EooWbLOTs6QBLllS8qbbxu4G+A=; b=evuHitkfiQ82bAALhjmwt3M9HTjyFospVXGzY86+sDdnkHIexLxRD+Mep8LqxzbjMh exqOsBdpdU3B/2xRNS33CXcOIPz50+TBG6KlxJGC/DDlv6rNI2tYq4+xnWCVl37PLroF blDV0Ef5zt0ADu5b80hFj3itVdsgcj8n9xPPkrw71hJea6SPezF7tEx3XPMkPyG4Eoz8 YamXdBzdZC63DlqRdQrS/uiBrsd+24cxXdZGzQKSkcwL6BsOG3W1oITkq7HQSZDKwnLg Qgj+mYWYV34WCbOanVol+4gir2HUL2T3F2cpg4dTeubLMa3xrDuNIZH26kCn6IQJoTp0 pQfw== X-Gm-Message-State: APzg51Apl/3YvDh90O9pJBiN4qMu8twYputOJfA7TXZwshFNUIDfL3ZB vSSTwOhfCq5Rb7mzXjlda9hKgnQE X-Received: by 2002:adf:a292:: with SMTP id s18-v6mr2378366wra.100.1535488626443; Tue, 28 Aug 2018 13:37:06 -0700 (PDT) Received: from [192.168.1.18] (bla118.neoplus.adsl.tpnet.pl. [83.28.194.118]) by smtp.gmail.com with ESMTPSA id u40-v6sm4024420wrc.43.2018.08.28.13.37.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Aug 2018 13:37:05 -0700 (PDT) Subject: Re: [PATCH] leds: Convert to using %pOFn instead of device_node.name To: Rob Herring , linux-kernel@vger.kernel.org Cc: Sakari Ailus , Pavel Machek , linux-leds@vger.kernel.org References: <20180828015252.28511-1-robh@kernel.org> <20180828015252.28511-25-robh@kernel.org> From: Jacek Anaszewski Message-ID: <5e5ea614-5242-eabc-2e4a-aa20432a4a12@gmail.com> Date: Tue, 28 Aug 2018 22:37:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180828015252.28511-25-robh@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Thank you for the patch. On 08/28/2018 03:52 AM, Rob Herring wrote: > 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); > Applied. -- Best regards, Jacek Anaszewski