From patchwork Tue Aug 28 01:52:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 145256 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp609514ljw; Mon, 27 Aug 2018 18:54:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZl7AvVbowq33tl0OOTcgOmPRJYWhxDfbZXZWSkJjsamplPskfrqSZyBL0MpzGuCtBALgPZ X-Received: by 2002:a62:45d2:: with SMTP id n79-v6mr16712288pfi.137.1535421292168; Mon, 27 Aug 2018 18:54:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535421292; cv=none; d=google.com; s=arc-20160816; b=a0E+foGqjdiY9Gwtmu2q5gBwYuuJFd2yPtL4rurJD916iV1VLKmGN/2T6alB9SI11M VCX72i9XF87XtMBTqwgCSoaRxlbOuFRNybCQZIYxxc4uIqaNYAqrfL5oSlq2OAAHZldm qtQvAcN8GUb11i7yv82gl3z/bwgRT/n1qMEj5+H1UiLdSJt9UMCpsAQsCnlfZyUiGBfs IpWhjAsboN2NcXz0q/gZXnar5RKBJJbybE+MTBRVArbhxavi96XtjtC4E9QpSGfFOeId cHvFt0tcgGkctKVHWK4cmDuRhPgvFdgRHG9yzkqCmEhwi9ujnn9wF+7pti2XPM+vf6Bu 65Qw== 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=MWzmyGPE+4quYOfdKtwyh9zUbo2pjVGzo/pqYBMkyv8=; b=kwQzaVToMHOfuB7x4J9aud5pXO4m230svghBR5LXqrfoTJBctq/lykFqfc7y7oLUtB EfuzFhbrQeI60OTmz9GAUmwMnKjNu5FMiKXAdnlxRBz8YNfgB5eJlJ+T7Hh3lWGzTLyk uPIlBkzZb/3LI/Acv6gNi8Wc1in7Mrx9kHVNXfLVJRvxEKoHTvCHZWXN2jp4qg4TvHuu 51QbjlR9jxhphrnPvhipXM6sKwhg8Ws5POqhz4+v11sjVV4dt/hduI9xyv0C76XVCru0 e6frrUCGzPRBTiyjuxsTZIITOd/nxC6FPlKxkUlvTROr+wNNrTL+jHfbYVeNxjul/cbg kDqg== 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 p21-v6si795300plq.338.2018.08.27.18.54.51; Mon, 27 Aug 2018 18:54:52 -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 S1727756AbeH1FoF (ORCPT + 32 others); Tue, 28 Aug 2018 01:44:05 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:39768 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727210AbeH1FoF (ORCPT ); Tue, 28 Aug 2018 01:44:05 -0400 Received: by mail-oi0-f65.google.com with SMTP id c190-v6so14425oig.6; Mon, 27 Aug 2018 18:54:50 -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=MWzmyGPE+4quYOfdKtwyh9zUbo2pjVGzo/pqYBMkyv8=; b=mQ5K+RQt4JC2IFgy9H65CbKaspyrffqN6v4Fo5Q6y1uV3agJ357CZFt5EY4AmYCnoe McimKNgOqOEotE7Bpu9P01U8m1r527hz1oBBzNioK7vj/v0x5OQH6LVMmqimgzWstj2/ S8ZhjS+/pBsLwxpYFzO0Mlc5TwlujxtMTTLlm4zEE5OClQ9HbM8OL+Mx1Uu4wLAN8sgR nORcMrT4HeoEigPzWlkagaXBkzKmemJ+PzzXx5PlnQcO2KeiC39MONL+WTebfbNcNTrX jf7y/jH/NbxDJMKu6sVHtCqxL07y5ewSP2SVc0IIQivef8cgAf4IGxgbP0gOKv2ia7Di vUww== X-Gm-Message-State: APzg51AQfBswiQBld/mI7bQTYNwsNDxMYIFx9gvOBgkdKWkhMxLZqmog PPjgakxyYRTwWsG0sAUuW6+HtZc= X-Received: by 2002:aca:5cd4:: with SMTP id q203-v6mr969037oib.217.1535421289594; Mon, 27 Aug 2018 18:54:49 -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.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 18:54:49 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org Cc: Hans de Goede , Dmitry Torokhov , Maxime Ripard , linux-input@vger.kernel.org Subject: [PATCH] input: sun4i-lradc: Convert to using %pOFn instead of device_node.name Date: Mon, 27 Aug 2018 20:52:24 -0500 Message-Id: <20180828015252.28511-23-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: Hans de Goede Cc: Dmitry Torokhov Cc: Maxime Ripard Cc: linux-input@vger.kernel.org Signed-off-by: Rob Herring --- drivers/input/keyboard/sun4i-lradc-keys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/drivers/input/keyboard/sun4i-lradc-keys.c b/drivers/input/keyboard/sun4i-lradc-keys.c index a37c172452e6..57272df34cd5 100644 --- a/drivers/input/keyboard/sun4i-lradc-keys.c +++ b/drivers/input/keyboard/sun4i-lradc-keys.c @@ -185,19 +185,19 @@ static int sun4i_lradc_load_dt_keymap(struct device *dev, error = of_property_read_u32(pp, "channel", &channel); if (error || channel != 0) { - dev_err(dev, "%s: Inval channel prop\n", pp->name); + dev_err(dev, "%pOFn: Inval channel prop\n", pp); return -EINVAL; } error = of_property_read_u32(pp, "voltage", &map->voltage); if (error) { - dev_err(dev, "%s: Inval voltage prop\n", pp->name); + dev_err(dev, "%pOFn: Inval voltage prop\n", pp); return -EINVAL; } error = of_property_read_u32(pp, "linux,code", &map->keycode); if (error) { - dev_err(dev, "%s: Inval linux,code prop\n", pp->name); + dev_err(dev, "%pOFn: Inval linux,code prop\n", pp); return -EINVAL; }