Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43d2974b authored by Shilpasri G Bhat's avatar Shilpasri G Bhat Committed by Michael Ellerman
Browse files

hwmon: (ibmpowernv) Add energy sensors



This patch exports the accumulated power numbers of each power
sensor maintained by OCC.

Signed-off-by: default avatarShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 3c8c049a
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -51,6 +51,7 @@ enum sensors {
	POWER_SUPPLY,
	POWER_SUPPLY,
	POWER_INPUT,
	POWER_INPUT,
	CURRENT,
	CURRENT,
	ENERGY,
	MAX_SENSOR_TYPE,
	MAX_SENSOR_TYPE,
};
};


@@ -78,6 +79,7 @@ static struct sensor_group {
	{ "in"    },
	{ "in"    },
	{ "power" },
	{ "power" },
	{ "curr"  },
	{ "curr"  },
	{ "energy" },
};
};


struct sensor_data {
struct sensor_data {