Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp183532imm; Wed, 29 Aug 2018 17:51:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbghUH8214z1qrBA7q+yTvf/CpVt3UY3uCoAGSvOejO9D+9++tUWBa6f9xUP1mg/Yt4/8UJ X-Received: by 2002:a17:902:9a06:: with SMTP id v6-v6mr8028005plp.316.1535590277509; Wed, 29 Aug 2018 17:51:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535590277; cv=none; d=google.com; s=arc-20160816; b=eYU5TaZgqb9qegmjxHCVx5iidPzNib6Csp1Z1wI2r/zwy7OD8FSDmvEJ2DnyPSF62R EpDycg9hqrayXxOtf8xgoD5FvEL1NIrgWewQ2XL1ZtZmySdtBZhqul19nul/ghh+0vTw JoVJfTFsKhi99Zn8XOFvh/gQ1AGDdL+qJLqSFhHHmHoxl+ihyLJi8yok5+yUHBYOpm4j VRuBTDqHlQE1nqic2Y9vv0hR96eZTLPDKMyJeiWErrzPkDpWSH2AyNQWS3oo/1E9Brw8 bbcy7HURldD39Mui/xK1OdcP4iQde9ngYqwIS++ePnYsctOPLdwbBjzffbronFK9H9LX l9fQ== 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=Xg0YcYx/Lek9YOBEtPAAjZ/zxGPDPRKDiF27DB2Fknc=; b=ka6UO319Up8fD7hqvAeLkQqjwpYvhhSr89sr1m/ZYwmh3vuaqN8mcVhLBKGIHjA8X3 yO2LA4BYobLoU56Jn+ESYeJVyBizx00eeW+CfbXGYU4m4jom7ePaM6OR0XJoEA2zyl2z 5tWGvCx/dfjYxMdjbJe5WoDoa5xOcJOp3a3I+vQxMDnFlWs1xIxiC3B97KStbmTV0R+g gdWkJ2NbQOKfyEj6Le4D9QVFKkZ33JTaEz+kXqY1Scrk0SZ5xk265pCQX/yZsgzc4oiV v8xCRG2h6I3z9VAjA782Xg2QDiypdca5DjY4iURbJuw4TlNYqld1EXf012YhHX1DiYhK Yd7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kq6VaQ8V; 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 p3-v6si4974778pld.329.2018.08.29.17.51.02; Wed, 29 Aug 2018 17:51:17 -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=kq6VaQ8V; 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 S1727173AbeH3EtT (ORCPT + 99 others); Thu, 30 Aug 2018 00:49:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:53696 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbeH3EtT (ORCPT ); Thu, 30 Aug 2018 00:49:19 -0400 Received: from mail-qt0-f177.google.com (mail-qt0-f177.google.com [209.85.216.177]) (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 A2F2C20666; Thu, 30 Aug 2018 00:49:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535590189; bh=sHEYaOURkt5sM58PLK/liSel6+Oivklx19TnCUcfHwo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=kq6VaQ8V3U5mQOok9Ae6zB5L52g9j+aL9ERLO12GFNY9r8R71vazPK5akZ1JV5fdA xeMbdAgEFBPs3v7nR11Yvi3EbDhMv3lWVuBLcA1bPURK5zyTtRCuPQCs/InfiTIy+O qh/FdsoJg/9ZbAwpvatpt4UknIoWG8S8sJponUuM= Received: by mail-qt0-f177.google.com with SMTP id x7-v6so8000997qtk.5; Wed, 29 Aug 2018 17:49:49 -0700 (PDT) X-Gm-Message-State: APzg51CVeV5TX9zVrjplW4v4HM8H7mM7Cj06dWrxdbRcA1/plI0sqeck v9IerRp1sLjqbAFza6vx7gy0jLvYbU/5/LzUHA== X-Received: by 2002:ac8:1909:: with SMTP id t9-v6mr9331735qtj.327.1535590188879; Wed, 29 Aug 2018 17:49:48 -0700 (PDT) MIME-Version: 1.0 References: <20180828015252.28511-1-robh@kernel.org> <20180828015252.28511-21-robh@kernel.org> <3fa33583-f748-1708-2274-0a6f4e81004b@axentia.se> In-Reply-To: From: Rob Herring Date: Wed, 29 Aug 2018 19:49:37 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] i2c: Convert to using %pOFn instead of device_node.name To: Peter Rosin Cc: "linux-kernel@vger.kernel.org" , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Linux I2C , linuxppc-dev 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 Wed, Aug 29, 2018 at 7:25 PM Peter Rosin wrote: > > On 2018-08-29 20:42, Rob Herring wrote: > > On Wed, Aug 29, 2018 at 1:03 PM Peter Rosin wrote: > >> > >> On 2018-08-28 03:52, 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: Benjamin Herrenschmidt > >>> Cc: Paul Mackerras > >>> Cc: Michael Ellerman > >>> Cc: Peter Rosin > >>> Cc: linux-i2c@vger.kernel.org > >>> Cc: linuxppc-dev@lists.ozlabs.org > >>> Signed-off-by: Rob Herring > >>> --- > >>> drivers/i2c/busses/i2c-powermac.c | 15 ++++++++------- > >>> drivers/i2c/muxes/i2c-mux-gpmux.c | 4 ++-- > >>> 2 files changed, 10 insertions(+), 9 deletions(-) > >>> > >>> diff --git a/drivers/i2c/busses/i2c-powermac.c b/drivers/i2c/busses/i2c-powermac.c > >>> index f2a2067525ef..b706fd136ca5 100644 > >>> --- a/drivers/i2c/busses/i2c-powermac.c > >>> +++ b/drivers/i2c/busses/i2c-powermac.c > >>> @@ -390,7 +390,6 @@ static int i2c_powermac_probe(struct platform_device *dev) > >>> struct pmac_i2c_bus *bus = dev_get_platdata(&dev->dev); > >>> struct device_node *parent = NULL; > >> > >> Lose the initializer... > > > > That's pretty much unrelated though. > > I disagree. If you remove the need for the initializer, it's very much > related to also remove the initializer. You're right. I'd stared at it a bit and missed that in fact parent is only accessed within the case statement. Rob