hwmon: (occ) Add sysfs entry for OCC mode
authorEddie James <eajames@linux.ibm.com>
Tue, 15 Feb 2022 15:10:20 +0000 (09:10 -0600)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 28 Feb 2022 01:03:19 +0000 (17:03 -0800)
commita25126fc32890a2a03ba5ddd1189aa8a4bcf4591
tree475c57d725ab0045473b37d19180862ffc555297
parent6109c3e1905c3f8d0a3909c5f6a9ad5186822b2b
hwmon: (occ) Add sysfs entry for OCC mode

BMC control applications need to check the OCC mode 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-3-eajames@linux.ibm.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/occ/common.h
drivers/hwmon/occ/sysfs.c