summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/occ/common.h
diff options
context:
space:
mode:
authorEddie James <eajames@linux.ibm.com>2022-02-15 09:10:20 -0600
committerGuenter Roeck <linux@roeck-us.net>2022-02-27 17:03:19 -0800
commita25126fc32890a2a03ba5ddd1189aa8a4bcf4591 (patch)
tree475c57d725ab0045473b37d19180862ffc555297 /drivers/hwmon/occ/common.h
parent6109c3e1905c3f8d0a3909c5f6a9ad5186822b2b (diff)
downloadlinux-a25126fc32890a2a03ba5ddd1189aa8a4bcf4591.tar.bz2
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>
Diffstat (limited to 'drivers/hwmon/occ/common.h')
-rw-r--r--drivers/hwmon/occ/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/occ/common.h b/drivers/hwmon/occ/common.h
index a88c66d36e38..2dd4a4d240c0 100644
--- a/drivers/hwmon/occ/common.h
+++ b/drivers/hwmon/occ/common.h
@@ -120,6 +120,7 @@ struct occ {
u8 prev_ext_stat;
u8 prev_occs_present;
u8 prev_ips_status;
+ u8 prev_mode;
};
int occ_setup(struct occ *occ, const char *name);