hwmon: (pmbus/acbel-fsg032) Add firmware version debugfs attribute
authorEddie James <eajames@linux.ibm.com>
Wed, 28 Jun 2023 15:34:53 +0000 (10:34 -0500)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 21 Aug 2023 13:04:29 +0000 (06:04 -0700)
commitc15a8edd63319788356a9fc9a7fe60468a1476d7
treec90c8526c78019ebf9607992250ab6f37a8b142f
parent4a754aba0bd1ecc0529c7e0282a3947cff68cc5f
hwmon: (pmbus/acbel-fsg032) Add firmware version debugfs attribute

Like the IBM CFFPS driver, export the PSU's firmware version to a
debugfs attribute as reported in the manufacturer register.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20230628153453.122213-1-eajames@linux.ibm.com
[groeck: Dropped unused variable; changed buffer from char to u8]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/acbel-fsg032.c