From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bh-25.webhostbox.net (bh-25.webhostbox.net [208.91.199.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40h4BW0JSmzF2RD for ; Thu, 10 May 2018 04:09:38 +1000 (AEST) Date: Wed, 9 May 2018 10:29:55 -0700 From: Guenter Roeck To: Shilpasri G Bhat Cc: mpe@ellerman.id.au, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-hwmon@vger.kernel.org, benh@kernel.crashing.org, paulus@samba.org, jdelvare@suse.com, stewart@linux.vnet.ibm.com Subject: Re: [PATCH 3/3] hwmon: (ibmpowernv) Add energy sensors Message-ID: <20180509172955.GB20996@roeck-us.net> References: <1525688738-9185-1-git-send-email-shilpa.bhat@linux.vnet.ibm.com> <1525688738-9185-4-git-send-email-shilpa.bhat@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1525688738-9185-4-git-send-email-shilpa.bhat@linux.vnet.ibm.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, May 07, 2018 at 03:55:38PM +0530, Shilpasri G Bhat wrote: > This patch exports the accumulated power numbers of each power > sensor maintained by OCC. > > Signed-off-by: Shilpasri G Bhat Acked-by: Guenter Roeck > --- > drivers/hwmon/ibmpowernv.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/hwmon/ibmpowernv.c b/drivers/hwmon/ibmpowernv.c > index 74d9b5a..0298745 100644 > --- a/drivers/hwmon/ibmpowernv.c > +++ b/drivers/hwmon/ibmpowernv.c > @@ -51,6 +51,7 @@ enum sensors { > POWER_SUPPLY, > POWER_INPUT, > CURRENT, > + ENERGY, > MAX_SENSOR_TYPE, > }; > > @@ -78,6 +79,7 @@ enum sensors { > { "in" }, > { "power" }, > { "curr" }, > + { "energy" }, > }; > > struct sensor_data { > -- > 1.8.3.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html