hwmon: (occ) Add sysfs entry for IPS (Idle Power Saver) status
authorEddie James <eajames@linux.ibm.com>
Tue, 15 Feb 2022 15:10:19 +0000 (09:10 -0600)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 28 Feb 2022 01:03:18 +0000 (17:03 -0800)
commit6109c3e1905c3f8d0a3909c5f6a9ad5186822b2b
tree88977e19fd01a92d150ba42cce85f2cabb2a4651
parent567e77a2c213f0103912378891f25442b665cbfb
hwmon: (occ) Add sysfs entry for IPS (Idle Power Saver) status

BMC control applications need to check the Idle Power Saver status
byte returned by the OCC poll response, so export it in sysfs with
the other OCC-specific data.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20220215151022.7498-2-eajames@linux.ibm.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/occ/common.h
drivers/hwmon/occ/sysfs.c