From patchwork Tue Jul 18 21:43:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 108225 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp6488943qge; Tue, 18 Jul 2017 14:55:34 -0700 (PDT) X-Received: by 10.101.91.203 with SMTP id o11mr3882292pgr.206.1500414934464; Tue, 18 Jul 2017 14:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500414934; cv=none; d=google.com; s=arc-20160816; b=CDW7P8TrYAlGWkAD8RzjeUahD/AalQD9TEwdLhY35FC+IxfNJsOqnOcrkNefvteTQl TgqadI/ox+BBtsFxJhCNgpSiNf8Sgrz0Epp1+Jvci9NYHl3/04QUcZvfVf28Ncv3MQgx CQ1iPFmikgycx+1JGSx34BRXsRV8rlwj/5HXwp9C/OwNjbJ4P9XZztCFl39uRoFgQZMc 6UjoliBQu+2iXtL7WhrlUMiiCHbsIpKExRwqmpCto6RXO/u2cyJ0EWi0GxK7caGljzDj 9hPcVtqbnVuIPAtgV1ZGhMmz8uSnYUH1HAd7RY2lB2x53nKgEnt8WQwKabtacY3ydSl0 C6Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=n2CKKbvF7O0c8UcDkD1u0FzHK3iYyLnhJd2InnnqiVI=; b=XIbB7ZWgmJMZvzvGEfzxlCMKA3VanCLqppttHzoKWRmAd0p2GkGt9xKlMQrMny8JNO 6UGPvJL3lxhD3iINVfoGtwMQdjn4b+B9HVY2xKhqB+soPrGxWAtRs2yAub0cGxBYES2U dr+sxN+ewguMzHeCzNnePgQFm6W+DFPhgNKPbz7jA++VuhpS9IZ0x3wRJ4oHgiCKoF+k HiuLkkrFgRAXWWIByp94vR9a33IIiSJnrHgGH28tm4uOGrjpqUeXhuLunDAZjIm0O8UB hMKTcgqt7NPNRgeNoOgNnTqCpG/x1QEhLu/VHFhTNX+2imQ+c0cmzzQFa6Kx3WkTv9kc gOkA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b22si2666199pgn.143.2017.07.18.14.55.34; Tue, 18 Jul 2017 14:55:34 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752746AbdGRVo3 (ORCPT + 25 others); Tue, 18 Jul 2017 17:44:29 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:32932 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752712AbdGRVoX (ORCPT ); Tue, 18 Jul 2017 17:44:23 -0400 Received: by mail-pg0-f67.google.com with SMTP id z1so4352430pgs.0; Tue, 18 Jul 2017 14:44:23 -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; bh=n2CKKbvF7O0c8UcDkD1u0FzHK3iYyLnhJd2InnnqiVI=; b=XXdXmCPNhAbH4Hjo3K1Mzp9qvaZZRAHbdlk/W/KtBn/4rDeUNqUID2X/Xc0UuFmT5i QZIALrPio50DVCy+/hbK4GxG+xOenQpPcJ4yx77VTGsDvtnkwhVKiKM79f4KarTxJqM+ P5PfP+ehs1ve3u5KLo78pWISIse1y1AkOGec+wDw+IHWCh9YthOzww61fyQGTMKhGxpr ULYvpXyDDmVg6aL6WfIz5zG6wJogc/ClYPdhnfE2sMegy4i9fTXAsYs0Hkwhl//HHLH/ 7OtiTv3QDy/CcYDGm8H5eEnc0RfcQNrcNKbcyrSAJfGtNLttfHAvClKBENMg/P3Li1xT Q3Ww== X-Gm-Message-State: AIVw110Y2RXinuUmokevO2ygC002zdWKZgJkx8n9W3C5sD7LW2RS5OIY B3LjBgAGLo2vxQ== X-Received: by 10.99.8.66 with SMTP id 63mr3821152pgi.15.1500414263147; Tue, 18 Jul 2017 14:44:23 -0700 (PDT) Received: from localhost.localdomain (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.googlemail.com with ESMTPSA id r207sm7186560pfr.106.2017.07.18.14.44.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:44:22 -0700 (PDT) From: Rob Herring To: Guenter Roeck Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Dirk Eibach , Jean Delvare , linux-hwmon@vger.kernel.org Subject: [PATCH] hwmon: Convert to using %pOF instead of full_name Date: Tue, 18 Jul 2017 16:43:05 -0500 Message-Id: <20170718214339.7774-25-robh@kernel.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: Dirk Eibach Cc: Jean Delvare Cc: Guenter Roeck Cc: linux-hwmon@vger.kernel.org --- drivers/hwmon/ads1015.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) -- 2.11.0 diff --git a/drivers/hwmon/ads1015.c b/drivers/hwmon/ads1015.c index 357b42607164..98c704d3366a 100644 --- a/drivers/hwmon/ads1015.c +++ b/drivers/hwmon/ads1015.c @@ -191,24 +191,23 @@ static int ads1015_get_channels_config_of(struct i2c_client *client) unsigned int data_rate = ADS1015_DEFAULT_DATA_RATE; if (of_property_read_u32(node, "reg", &pval)) { - dev_err(&client->dev, "invalid reg on %s\n", - node->full_name); + dev_err(&client->dev, "invalid reg on %pOF\n", node); continue; } channel = pval; if (channel >= ADS1015_CHANNELS) { dev_err(&client->dev, - "invalid channel index %d on %s\n", - channel, node->full_name); + "invalid channel index %d on %pOF\n", + channel, node); continue; } if (!of_property_read_u32(node, "ti,gain", &pval)) { pga = pval; if (pga > 6) { - dev_err(&client->dev, "invalid gain on %s\n", - node->full_name); + dev_err(&client->dev, "invalid gain on %pOF\n", + node); return -EINVAL; } } @@ -217,8 +216,7 @@ static int ads1015_get_channels_config_of(struct i2c_client *client) data_rate = pval; if (data_rate > 7) { dev_err(&client->dev, - "invalid data_rate on %s\n", - node->full_name); + "invalid data_rate on %pOF\n", node); return -EINVAL; } }