Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7126931ybi; Wed, 5 Jun 2019 11:41:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKbN2iOtfLFsx9HPEbbECJrBRNkBjGGb4VucTkUIPbGJBcEUCy9VC+QWDeyIHo6Dm00ae8 X-Received: by 2002:a63:6fce:: with SMTP id k197mr206091pgc.140.1559760071606; Wed, 05 Jun 2019 11:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559760071; cv=none; d=google.com; s=arc-20160816; b=VLoQZ72OtGQjVSOWA0eC8mV4/2ACF2JCZdwxS5fEfnhqyLyKU4JCo0cxLFBGoDkYrt Yp6pdRFL3S/RNNb7ImZcR6Ov9Hmc39WwEpTX8BzyphvXS9u422hgbRChXl5ISqlpewZP MzT8681BU5rNcqJpNP/C50QYmYrjkWoRl9Qrn8ZBy01+L7H7DHWOGEgWBQnRRn4KJzlH iLk/YD32Xalo2QQg7+UGazAVCvvvwk0R/4eOFaCW9riyWj0/OFqzifIaD7rdDLAtjxOZ G6JlWwgRDTiGvIKEQ75WEfAYmvqkYACQ4IG4ewIJHywc81SrpeNfs/1gh3XIGtR72Kpy DH4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EsgY0LCfL8NEtsgC2ZWT1PgdhSR04Uyi+X7VGGPnVB8=; b=eNYHYaU9Y7jyfgqxfdqOw/87fGcQuYfJl2Z9axY2L+pj/FnD7b/7YMl4NWduYVdDCg Ta5L2jBfjQ+APwiEvu8b5PcC4JGsrrUFRt6DMjj4oS1LqzYIw2Hcc3O1VHo0WduL382V j0ePETTXo7+6j/hyGqmcnWMmgfwFqgefsoiyF7jJpQ06h7nIGRkRcW5zi/kbpVAd/NBw BiqSA9HjfX7WHUr//FATm0E61FCvCrU0KDW1Vwtl3mzqZE96bp9d9rq6EWt6pAAtmcg1 gSVjz+auxZp4bBItgF3fC95EGi2mD1fThyiyhjNNoYb6s+grNqnPKonpZ7/ql4u6uete LQng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Io6YhUXF; 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 a13si29239786pgl.508.2019.06.05.11.40.54; Wed, 05 Jun 2019 11:41:11 -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=fail header.i=@gmail.com header.s=20161025 header.b=Io6YhUXF; 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 S1726543AbfFESjs (ORCPT + 99 others); Wed, 5 Jun 2019 14:39:48 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:41661 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726280AbfFESjr (ORCPT ); Wed, 5 Jun 2019 14:39:47 -0400 Received: by mail-pg1-f193.google.com with SMTP id 83so6053344pgg.8; Wed, 05 Jun 2019 11:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=EsgY0LCfL8NEtsgC2ZWT1PgdhSR04Uyi+X7VGGPnVB8=; b=Io6YhUXF9Bn8KXo1od26iVf5UFoh68R+yM5ryVoQxoGO4ZAbI10gZw0p+wJ9fk1s7S dd1VxeT01mcvKz20KGAVj4QIxx5fFkQcXdvKBVU3LpvOyd7cYCNJPsRMGUnLY+AivLtR ol+VYLB4S4vgkMjaSamHHAvsHDSUl9nXy3oA0XETHbBq+DQqT2Ti6lCttZDSqDZENxfj zpctZ8L0lVnmVKM0n0z3k6smtdCvVQkRPmlgND7+YK4CDqNNo+sMWtWMfJSfvFeKlrVR YQ9AOecfhWzWpvoYr3l3VgOWyULSULTF9PNqPxJfZ8Jv0pikA8ZR8agwImf89sWvG+fc kVew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=EsgY0LCfL8NEtsgC2ZWT1PgdhSR04Uyi+X7VGGPnVB8=; b=XKGnKZZ27CA9sjSXkg0PsRtN7hLz26oDWgNukkReIjE6xVNOeLCqASJDNxMBbpLxhr dsadgZDScImJg0uAYfZnxWyhUXU2k1y4QILd9sYGw2CAGL9TF/GUzLjc0M7qAYeZBTrz 98HB5SqAeAu87jZCFdon8H+7fNS8yqimkyq/NAzhpWy4tndx4kVi0H6/O6oTgjNo3Qr7 XuVvyD0M6utgcAfySJBd2NWjwumw2scEmYhMcmJPOqQamt4ed81dajtmnRoTPsUB0mYo iofGyQfAIW4eE1PE/eiTm0Yo4zp6jLIs6hdrZg65ApI02vcy0qgA9f5BMSvZDjrRoChd n8NA== X-Gm-Message-State: APjAAAWyhFgtnm2row3JI7VoVR7HEW8wnK39l+GaG/ygyOIDknempOlO u3ywX537bRPRsUL5hjc7Fz8= X-Received: by 2002:a63:1919:: with SMTP id z25mr157988pgl.440.1559759987279; Wed, 05 Jun 2019 11:39:47 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id e66sm24784870pfe.50.2019.06.05.11.39.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jun 2019 11:39:46 -0700 (PDT) Date: Wed, 5 Jun 2019 11:39:45 -0700 From: Guenter Roeck To: Andrey Smirnov Cc: "Andrew F. Davis" , Linux PM list , Chris Healy , Cory Tusar , Lucas Stach , Fabio Estevam , Sebastian Reichel , linux-kernel Subject: Re: [PATCH v3 2/2] power: supply: ucs1002: Add HWMON interface Message-ID: <20190605183945.GA2442@roeck-us.net> References: <20190605072323.21990-1-andrew.smirnov@gmail.com> <20190605072323.21990-3-andrew.smirnov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 05, 2019 at 10:47:25AM -0700, Andrey Smirnov wrote: > 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. > Same here, and agreed. Guenter