]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
hwmon (occ): Add sensor types and versions
authorEddie James <eajames@linux.vnet.ibm.com>
Thu, 8 Nov 2018 21:05:27 +0000 (15:05 -0600)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 16 Dec 2018 23:13:09 +0000 (15:13 -0800)
commitc10e753d43ebd1d17e1c62bcee20c6124c2c7cca
tree2aadb1d0e38e86b937483bee2f8921f6535c9caf
parentaa195fe49b033db545ad986cdb2c431c37bea557
hwmon (occ): Add sensor types and versions

Add structures to define all sensor types and versions. Add sysfs show
and store functions for each sensor type. Add a method to construct the
"set user power cap" command and send it to the OCC. Add rate limit to
polling the OCC (in case user-space reads our hwmon entries rapidly).

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/occ/common.c
drivers/hwmon/occ/common.h
drivers/hwmon/occ/p8_i2c.c
drivers/hwmon/occ/p9_sbe.c