]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (ltc4282): Fix reset_history file permissions
authorNuno Sá <nuno.sa@analog.com>
Fri, 19 Dec 2025 16:11:05 +0000 (16:11 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 19 Dec 2025 16:44:22 +0000 (08:44 -0800)
commitb3db91c3bfea69a6c6258fea508f25a59c0feb1a
tree84db8d09ca955295aca51aaba4f4f887b3250be3
parent6cde588e64934858bb1553119c6b915b2fec9011
hwmon: (ltc4282): Fix reset_history file permissions

The reset_history attributes are write only. Hence don't report them as
readable just to return -EOPNOTSUPP later on.

Fixes: cbc29538dbf7 ("hwmon: Add driver for LTC4282")
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20251219-ltc4282-fix-reset-history-v1-1-8eab974c124b@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ltc4282.c