Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7076828ybi; Wed, 5 Jun 2019 10:49:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlwUjl6B3kdUoI0aZkoBFZ+ZX3uHBj6odm9oqSoiSvKjhuDSAhYBKUyRyph4sZZXOK04G1 X-Received: by 2002:a63:1d1d:: with SMTP id d29mr6322883pgd.63.1559756943299; Wed, 05 Jun 2019 10:49:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559756943; cv=none; d=google.com; s=arc-20160816; b=QBbQawLr8ABwbb+eQv8BSjeiAowyu82vVZiuY0F6M08umAtGFMgBs5fBjv7wYxi7A1 E7dTMRKoVjgjL3DAj28Ee5eM+dLcy2fRMKmn0bK3uURs+8X5iR82UP3QV8aKYzaiZB5i b8rBcwwZ1JEcw2F/eimJGLKqXHiMboyg+kDoRVh0u17BTcoFMGKsQWzfB6h+Yz7rFWFE gFJTX30il/CDue1h4d3opdcPQWtOyc+ljS/ztKZXh4CbMfJCTJf1H5r57VG1uYikZEQS 3orSrveWdK02dyg00lOjiNqxId/OQT7xWmVR5RCH1XrobLrUdTcBrW9k9P2KRC+dEouv dtvQ== 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; bh=qfpNMs0qBdZunrudW5P8w9zGiTn2bNjLPMUaDAOngOU=; b=Wby9O/BCJ1MbHIM8uDVXMuHwHKaulxQKcHmRv40caZsanHYBz3/i0mBeKeLBGIoL20 1KzKa2PvyIlfiIG573sAydBC61732f4xlGLjbkKSGdojXghZWsaPvuY547F1ZrbAskT2 5c6qcxVm4Y3OYzHGNJb0BKgGPhc9ZerEMq5htLiMnao/c/Z8KC8frVfvb9lO+YzO4sqx +BcaTCtC91PuSlduymWut5bCCdqYEzGTtZJuxO4T/GUpRheCJ5cZjWjZWp2rTJFdnRGS T31OcnC9AX4B1eKoz7hWe9RDJbTJbG/SYlp20RGiI5HrQnZ+rVFo1Kjh1UxbsmmOkiWb LSbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HVvw4L2T; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1si29794312pld.439.2019.06.05.10.48.47; Wed, 05 Jun 2019 10:49:03 -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=@gmail.com header.s=20161025 header.b=HVvw4L2T; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726551AbfFERri (ORCPT + 99 others); Wed, 5 Jun 2019 13:47:38 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:55954 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726240AbfFERri (ORCPT ); Wed, 5 Jun 2019 13:47:38 -0400 Received: by mail-it1-f194.google.com with SMTP id i21so4814804ita.5; Wed, 05 Jun 2019 10:47:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qfpNMs0qBdZunrudW5P8w9zGiTn2bNjLPMUaDAOngOU=; b=HVvw4L2TsO9UjjSdDA8eu7X54+P/JDP8YBeUbQ0yebOV2wR4NyeF2OQrrbr47SfJju g4vEN9Lc0d7E9Bok6ZSSxYoscWdjXGy/v+X0tyuUG4GAjchlx7RICUsHlGHXpCZLspwb o9lfNVsPZypxhh4Jf5ZvKcBSJKPZ55vPB3rO1Ch7/FTjBm+h4XgweOFsst6w6yw8J/yk HF4BiZK+P9hpNqWSZQHDjpSgU2l9BYy/zRDefAImPIH+uo14Of4AJRoAU0w6YcATTrs/ 3I6uo2/dO6ZKN+QG06chHXPV4PCJqh3bYsnplDZb2++Ibbf82iwviMDSZQcX+6hSPwYk FpdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qfpNMs0qBdZunrudW5P8w9zGiTn2bNjLPMUaDAOngOU=; b=d4OhyAdA80869JChxUxc1qbLEqVOJeKoaTzXzQ2dLoy6hqTzk4vepxwaIa91wf6mZb wPuXHU3e1CXVUZjnT/kMoG0TLRMi5kKPfaXjXaz1zABMexNPGGlRgbOMa7AHdRo/5Ndh Wc/GL82Q3EaHy5LSWV0RNMiY3NGeSXNILdlOK09pqnHRfhSo3VTuNc9k4f5SXrS6jhlQ B1x0oGvsF+d+xy8lpoW4vpyywZlKv8x7BqIkXDLLqjrxlLGq+4OaTJWvGREFm1Y2wu/G PB74bpNMjzmHr9zFukbRZhspxxrFHECYMygFZyjxuHUUrLWSZIphPILmdOiXvXoQoXDE 2/tQ== X-Gm-Message-State: APjAAAUv2cAlGIMhuoedhrAeX1La4Cw4M2Kb1/kBDMueC5re59ewjKj7 UEoCzG6UdGVfyrkHaPqPhS1seLOxKS/XB5cgj9c= X-Received: by 2002:a24:c0c2:: with SMTP id u185mr13228186itf.2.1559756856877; Wed, 05 Jun 2019 10:47:36 -0700 (PDT) MIME-Version: 1.0 References: <20190605072323.21990-1-andrew.smirnov@gmail.com> <20190605072323.21990-3-andrew.smirnov@gmail.com> In-Reply-To: From: Andrey Smirnov Date: Wed, 5 Jun 2019 10:47:25 -0700 Message-ID: Subject: Re: [PATCH v3 2/2] power: supply: ucs1002: Add HWMON interface To: "Andrew F. Davis" Cc: Linux PM list , Guenter Roeck , Chris Healy , Cory Tusar , Lucas Stach , Fabio Estevam , Sebastian Reichel , linux-kernel 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, Jun 5, 2019 at 9:26 AM Andrew F. Davis wrote: > > On 6/5/19 3:23 AM, Andrey Smirnov wrote: > > Expose current sensors found on UCS1002 via HWMON. > > > > Signed-off-by: Andrey Smirnov > > Reviewed-by: Guenter Roeck > > Cc: Chris Healy > > Cc: Cory Tusar > > Cc: Lucas Stach > > Cc: Fabio Estevam > > Cc: Guenter Roeck > > Cc: Sebastian Reichel > > Cc: linux-kernel@vger.kernel.org > > Cc: linux-pm@vger.kernel.org > > --- > > drivers/power/supply/ucs1002_power.c | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/drivers/power/supply/ucs1002_power.c b/drivers/power/supply/ucs1002_power.c > > index 677f20a4d76f..a4b6b37549cf 100644 > > --- a/drivers/power/supply/ucs1002_power.c > > +++ b/drivers/power/supply/ucs1002_power.c > > @@ -571,6 +571,12 @@ static int ucs1002_probe(struct i2c_client *client, > > return ret; > > } > > > > + ret = devm_power_supply_add_hwmon_sysfs(info->charger); > > Could this be added to the core power supply framework on registering so > all devices get this, vs each driver having to add this line? > I'd say it is up to Sebastian to decide if this should be opt-out rather than opt-in. I have no objections to either approach. Thanks, Andrey Smirnov