From: Shilpasri G Bhat Date: Mon, 7 May 2018 10:25:38 +0000 (+0530) Subject: hwmon: (ibmpowernv) Add energy sensors X-Git-Tag: v5.15~8686^2~156 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43d2974b66d916a6df16e536da542e3a65aab7b9;p=platform%2Fkernel%2Flinux-starfive.git hwmon: (ibmpowernv) Add energy sensors This patch exports the accumulated power numbers of each power sensor maintained by OCC. Signed-off-by: Shilpasri G Bhat Acked-by: Guenter Roeck Signed-off-by: Michael Ellerman --- 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 @@ static struct sensor_group { { "in" }, { "power" }, { "curr" }, + { "energy" }, }; struct sensor_data {