From patchwork Fri Nov 16 22:05:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 151376 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp953385ljp; Fri, 16 Nov 2018 14:06:07 -0800 (PST) X-Google-Smtp-Source: AJdET5dZ6Grgu2X/pzD0AhX0pwVZGbH8zzpmHFdsx4QLHSRQ3EQqvwOQSq1za08vdDMUIGA/jrqr X-Received: by 2002:a17:902:3143:: with SMTP id w61-v6mr12554592plb.58.1542405967404; Fri, 16 Nov 2018 14:06:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542405967; cv=none; d=google.com; s=arc-20160816; b=JKFfdGnf4BLPZwBOLCQR4jDAGRXe2wVMyV5hMRxcRuL9/13k2ke/gUJl7hSk/t07Kd faXFzTOqi7DjObYjfkEhFyW6/IZYBgAuzr37FlYLb3YcjSQOW9OSUVKYQa5GpbgM1zxO sjzvl50qL9CeVa1u8OaEdv3/i5FMLWj39XygKKeaM6Us7YOEbKQF5HjsfC+/45KFUi44 LcxXN+M9781vEnx6aqlpIliFJ+XfKjgrnwsBihr9pZ9MgqkuQ7/T80+owIKuJyBhFosD WcS4oxIzw+moSknlj5z97PgP5/DOwcPJjqj6/UpuYOqQhQa2tzVvoxMUL0/xYBfbgIDF T8JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=drXqcYQ5TQ0Ts4r0rdK1f6vDai11PvwH1mXapm9Fd2E=; b=BYYDlYHTB0wNVU+4KL50OMUTgXlah+ZVLUoJRwv8zxj9bCgdLBvAETvbaMEIehoVFr ii03TF1DHHhJg+zHuCbNaYXk5rsWixrL9nvGUiBL33ndhlL1nIdt7zlR02Ze+gyuBMim VgqYyA5SpjxImmxqnDbEZZSZcfXcAkkw83gqg1NJmA6ftXfWcyTYdd2f4mHs+YmBO0gC yNuZRebccK5sOrwx1+GAasZaZ/ON3zHTaisybWR80T0znsgKMWmJWWYr/KUEBxW7HhNs DZ4BrrNggN3L0yRF0i8NiXCHKU8819rwkcPTIc48OCEMF123JFgrWZQxtYfMDFCZMC6i plBQ== 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 y6si14432823pll.384.2018.11.16.14.06.07; Fri, 16 Nov 2018 14:06:07 -0800 (PST) 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 S1729547AbeKQIUE (ORCPT + 32 others); Sat, 17 Nov 2018 03:20:04 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:41637 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725819AbeKQIUE (ORCPT ); Sat, 17 Nov 2018 03:20:04 -0500 Received: by mail-ot1-f65.google.com with SMTP id u16so22417414otk.8; Fri, 16 Nov 2018 14:05:55 -0800 (PST) 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:mime-version:content-transfer-encoding; bh=drXqcYQ5TQ0Ts4r0rdK1f6vDai11PvwH1mXapm9Fd2E=; b=QR0my5HjD1cwonHEHR7bHyygMbHhWlz78XD00LuXXgi+tuf2I/91BRwbRP+MyRaN/o dD79GVKaHbsGYDCxNiZM7cxDFc7ce0FUVUu5oMs3DX4Inyt5b+u7VAnqtIrJhEl5feIJ 1bqiqUCUbXSIUaXzz7B5DVubuY0ECfOCgdFYR4IpxnjkdxgWyKV62qEQAgI5WpikjVVj dzAieB0GsmRaiCcLmPY5Qzwwo9z8ve4GyOuQ3E7JifMU6gGbR4hEipOMGXOY/G4Y7u20 orBeEnUc0ipuIvc6tVNNrZeZbQSOeEqFRZvs9scNJMYMIpWPfSdvae641hR7/uDncpro m/Cg== X-Gm-Message-State: AGRZ1gLCz2xx6JOmNOuxWnK0YNqOURUnov8jACJo5sQ0730SwTmwA6z4 6NT7onN52ujF5ByGmUn4zslEeXlPAw== X-Received: by 2002:a9d:39f7:: with SMTP id y110mr6966738otb.240.1542405954716; Fri, 16 Nov 2018 14:05:54 -0800 (PST) Received: from localhost.localdomain (mobile-166-173-57-127.mycingular.net. [166.173.57.127]) by smtp.googlemail.com with ESMTPSA id w5sm2316587oif.48.2018.11.16.14.05.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 14:05:54 -0800 (PST) From: Rob Herring To: Guenter Roeck Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jean Delvare , linux-hwmon@vger.kernel.org Subject: [PATCH] hwmon: ina3221: Convert to using %pOFn instead of device_node.name Date: Fri, 16 Nov 2018 16:05:38 -0600 Message-Id: <20181116220540.17222-2-robh@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181116220540.17222-1-robh@kernel.org> References: <20181116220540.17222-1-robh@kernel.org> MIME-Version: 1.0 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: Jean Delvare Cc: Guenter Roeck Cc: linux-hwmon@vger.kernel.org Signed-off-by: Rob Herring --- drivers/hwmon/ina3221.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.19.1 diff --git a/drivers/hwmon/ina3221.c b/drivers/hwmon/ina3221.c index d61688f04594..27abbc5b9d46 100644 --- a/drivers/hwmon/ina3221.c +++ b/drivers/hwmon/ina3221.c @@ -469,10 +469,10 @@ static int ina3221_probe_child_from_dt(struct device *dev, ret = of_property_read_u32(child, "reg", &val); if (ret) { - dev_err(dev, "missing reg property of %s\n", child->name); + dev_err(dev, "missing reg property of %pOFn\n", child); return ret; } else if (val > INA3221_CHANNEL3) { - dev_err(dev, "invalid reg %d of %s\n", val, child->name); + dev_err(dev, "invalid reg %d of %pOFn\n", val, child); return ret; } @@ -490,8 +490,8 @@ static int ina3221_probe_child_from_dt(struct device *dev, /* Overwrite default shunt resistor value optionally */ if (!of_property_read_u32(child, "shunt-resistor-micro-ohms", &val)) { if (val < 1 || val > INT_MAX) { - dev_err(dev, "invalid shunt resistor value %u of %s\n", - val, child->name); + dev_err(dev, "invalid shunt resistor value %u of %pOFn\n", + val, child); return -EINVAL; } input->shunt_resistor = val;