Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7217397imm; Tue, 28 Aug 2018 08:13:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYWqp8LGmcqi18LeTdyRk2zuaHPz6+Xes75ZXgBY/GSrnDw2Cd7iBdvT6F2+l+JwmcflFYz X-Received: by 2002:a65:450a:: with SMTP id n10-v6mr23990pgq.392.1535469209234; Tue, 28 Aug 2018 08:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535469209; cv=none; d=google.com; s=arc-20160816; b=RSLqFUzYPKv5qIx84y6zHPfHHNGImJzccwVYJO1XSPsMI+uFTeopajBFxmzhH+tH5Y UGUEHt0RghQ3thZTGhWe1NJZkYYQJdOnJhdXMQsB91MlJ+S9EkCg3Pneg5PFp52Y83eR GiHUyRpWRfO+ZG2QoMAOTi27FMzwY+c9z8FRWlteR7Zl+vr1Aq8vtmtrekQGfJQjdovN Wh4unppmNIWtVhflxyla2gZbz43u2WGwqrOywXepqFrJjCbDjArtd31+N/nv8yiiQkwF vSFQB7Qmwy7Us25kbj7oL82dOQTSOYU29CYhOM6z72CRqYufrlL5jyyWOKpfSAPDjrrN BCAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=E1300YIJXwFE3OmFR1mKnEkgrIYHMHpbAihY+SpKptg=; b=uarwMWd+YdhtcArGXITPx0p60XQurvRngxaGeJXSlV4S1VH2raNueiUnlOIoUhtbUR Pr/CLf8H4ch882yC248k3UZrxO0tpPJIF1wKss84vGyVdYlV+7WVD7c2uUvDIf8StXuL iwnMF0qRBoUzA3kvZLCqSNgNm80gO4AuiuHzelnj/bfFmOOvxZVbXRpSvbGCx1p5hAT5 96Msv34PW9k5/Jb+Qn759yHOYxAiDpkbZQMgbEqLKiwWGpdZEXwi3+0OXxmBTkOsv9TQ 3M6gPIpKNwDYoEdFPBwt4Rkc7ORHorVe+FOR5Y3Cv7ruM6tg4q2+rtGWvNIR5lIQW7R6 JOiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LHCIEvDu; 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=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 31-v6si1202457pgk.95.2018.08.28.08.13.13; Tue, 28 Aug 2018 08:13:29 -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=@kernel.org header.s=default header.b=LHCIEvDu; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727293AbeH1TEA (ORCPT + 99 others); Tue, 28 Aug 2018 15:04:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:36310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727040AbeH1TD7 (ORCPT ); Tue, 28 Aug 2018 15:03:59 -0400 Received: from mail-qk0-f179.google.com (mail-qk0-f179.google.com [209.85.220.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 921D32087B; Tue, 28 Aug 2018 15:11:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535469112; bh=E1300YIJXwFE3OmFR1mKnEkgrIYHMHpbAihY+SpKptg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=LHCIEvDusTAYlqsVDXRpN78gw+Kd/lQfGyHJ5RX5dFRf7wNqEl0dPm7JkF91TO2vh 65onQp21hEgykFCzCoR74/lbPEn4Y08LXqklhcRjyZTfMYD8g5/aU7RTiwwDaivH5j 6E6oSPjS5UBOO/iccahZn70h73f59JMu3+0sX6EI= Received: by mail-qk0-f179.google.com with SMTP id d131-v6so1200980qke.11; Tue, 28 Aug 2018 08:11:52 -0700 (PDT) X-Gm-Message-State: APzg51CbLQOOqHCUXqCBOuN//p9XPytUkm4kQQrL6KRVNwcSl0iFOMTU x/6HHW0FNenhME7D/UMZ0qNboVZFPldei9eeQA== X-Received: by 2002:a37:56c7:: with SMTP id k190-v6mr1871190qkb.29.1535469111755; Tue, 28 Aug 2018 08:11:51 -0700 (PDT) MIME-Version: 1.0 References: <20180828015252.28511-1-robh@kernel.org> <20180828015252.28511-20-robh@kernel.org> In-Reply-To: From: Rob Herring Date: Tue, 28 Aug 2018 10:11:40 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] hwmon: Convert to using %pOFn instead of device_node.name To: Guenter Roeck Cc: "linux-kernel@vger.kernel.org" , Jean Delvare , Linux HWMON List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 28, 2018 at 8:57 AM Guenter Roeck wrote: > > On 08/27/2018 06:52 PM, 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: Jean Delvare > > Cc: Guenter Roeck > > Cc: linux-hwmon@vger.kernel.org > > Signed-off-by: Rob Herring > > The devm_kstrdup((..., "iio_hwmon") is getting a bit ridiculous and is asking > for a rewrite, but that can be done in a separate patch. Yeah, I tend to think the drivers should just set a name rather than pass thru whatever is in DT. If the DT follows good practice then the node name is just going to reflect the generic class of device. > Other than that, do you want this taken through hwmon or as a series on its own ? You can take it. Rob