Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6553056imm; Mon, 27 Aug 2018 18:55:09 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbmcWUAWo0uqosoiT9kQfPUdCuqTpoFV092FZLl2oVxPDM0uHnXGhx8rWcvgW3es1Zd+4wD X-Received: by 2002:a17:902:7c8e:: with SMTP id y14-v6mr15482653pll.259.1535421309685; Mon, 27 Aug 2018 18:55:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535421309; cv=none; d=google.com; s=arc-20160816; b=jaMpc6H8CXspD1Xi8uoATMHe9x/fPV5p5JXqMboumbWC32drJlL/yPP7dbvoJM619A 6j85MHkvdgaoYpId8a8YF55chBEOdqHco1wMHA8sxlHyC15cka5QNc4NatvYGMmIjNsq m6BqPRwmG5X8nFjOVPtJlFJdItXnG0Lv8XZ7GK4ubVniVSsQ9J7jEI8ApcGRpRBKQMCS RpostEacmGK9zdSndthyEt3IxJHKSBmgM1fU4xURfTSF5LxyVwitrviGFCHqtf0Q2HIz rBX4xgtcFN3NgL3ygDew1lwqlpD2e5iaweOXYD1kymnr1DVCPaFmwbRus8GhJ1guTaax Y/Tw== 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=9ySqF6IiXDdirqBkKtalXkzw16PKSeO5DJ9duLXJb/w=; b=eBcVORa8AznSKWIavlngzDb7QS4NXiIK7AeMmqEese3YqMbOvXvV2j5oRZKBWM9O2p HaoTd5g2EAcQQsxZgFUS88tl5MAGFli36SiRo23Fqe2HFammQ31xim4gTuK2gXr3yv4C yecME1qKd7SP04dU+b9GXo83DBs6zxje9pgF9alYG5x59VkuLpS4rGnBt1wi7FsX8+HE IwkVtYdgHbzQrQp4HNx5/CA7F+GdjL9tfpdiztXkiurC2QxWV0liFsUfmSDeyUuXcyEG UOj70cig2Z2/0xtGrT3y8yWz+Gu6zz+Hd3NPZNsIGCfp7tvIJbcT7oAHF8B1Z7J+fVov KUfw== 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 d2-v6si929791pgu.106.2018.08.27.18.54.54; Mon, 27 Aug 2018 18:55:09 -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 S1727520AbeH1Fm1 (ORCPT + 99 others); Tue, 28 Aug 2018 01:42:27 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:40281 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727495AbeH1Fm1 (ORCPT ); Tue, 28 Aug 2018 01:42:27 -0400 Received: by mail-oi0-f67.google.com with SMTP id l202-v6so1436oig.7; Mon, 27 Aug 2018 18:53:12 -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=9ySqF6IiXDdirqBkKtalXkzw16PKSeO5DJ9duLXJb/w=; b=nVQDwzfcLVghXhkBQar3k1FEzR6k2qIlTUm5mtSf5hYXL9lC29zne78f8IBzVjh6Ya +KsAAbCbWZqHuYuVVLemEKjjtviwqnyUA9G9V/Yd8cV/fqgmObDVTOGN8ZQE/u6S1C8/ 5N6apYHGnuVZWr3Oc6xdYUPfRqBaPr14EDPnuUCCxOASo7kxv0FYmSA/jITUGyzqE9wj 402wT9x0GsqXaEcZx1XbpCELPXRxmmlEVehJTj4P1PNm5vhjRwMB+TIVUqh3fyHlao+R gf6HVrQAcO4ncwELOttsjbDCnG6JYHm1oQeHgSCte/rmErqj8JR8dEYnqa2tRJiupOyN UttQ== X-Gm-Message-State: APzg51BuBOoIQHhn+jiHbg4Ygxj2v0PyaG7vXHnXPV2TV/yzGwhMQ0Yl zv5QCP40ipAM2/rfqGTgvdXnjgs= X-Received: by 2002:aca:3882:: with SMTP id f124-v6mr1126564oia.195.1535421191708; Mon, 27 Aug 2018 18:53:11 -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.53.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 18:53:11 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org Cc: Linus Walleij , linux-gpio@vger.kernel.org Subject: [PATCH] gpio: Convert to using %pOFn instead of device_node.name Date: Mon, 27 Aug 2018 20:52:19 -0500 Message-Id: <20180828015252.28511-18-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: Linus Walleij Cc: linux-gpio@vger.kernel.org Signed-off-by: Rob Herring --- drivers/gpio/gpiolib-of.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index a4f1157d6aa0..089783b11e87 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -348,8 +348,8 @@ static struct gpio_desc *of_parse_own_gpio(struct device_node *np, else if (of_property_read_bool(np, "output-high")) *dflags |= GPIOD_OUT_HIGH; else { - pr_warn("GPIO line %d (%s): no hogging state specified, bailing out\n", - desc_to_gpio(desc), np->name); + pr_warn("GPIO line %d (%pOFn): no hogging state specified, bailing out\n", + desc_to_gpio(desc), np); return ERR_PTR(-EINVAL); } -- 2.17.1