]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2caf88a02335977cef35908c08d7e49318c89db8
tree88977e19fd01a92d150ba42cce85f2cabb2a4651
parentbc61fa38e5b0a766599ed0390b7e74076e011c7d
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