]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
hwmon: (pmbus) Introduce the concept of "write-only" attributes
authorGuenter Roeck <linux@roeck-us.net>
Wed, 25 Mar 2026 01:54:11 +0000 (18:54 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 25 Mar 2026 20:32:33 +0000 (13:32 -0700)
commitcd658475e7694d58e1c40dabc1dacf8431ccedb2
tree6d3a419e26aee77cdf1d011ba4ffdceafdfe38bd
parent805a5bd1c3f307d45ae4e9cf8915ef16d585a54a
hwmon: (pmbus) Introduce the concept of "write-only" attributes

Attributes intended to clear sensor history are intended to be writeable
only. Reading those attributes today results in reporting more or less
random values. To avoid ABI surprises, have those attributes explicitly
return 0 when reading.

Fixes: 787c095edaa9d ("hwmon: (pmbus/core) Add support for rated attributes")
Reviewed-by: Sanman Pradhan <psanman@juniper.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c