ABI: sysfs-class-hwmon: fix tempY_crit_alarm access rights
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Fri, 17 Nov 2023 06:40:36 +0000 (07:40 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 11 Dec 2023 14:21:00 +0000 (06:21 -0800)
commit2de83b67cf8ca122c94132088c8985f1b81b8a97
tree5af7396f8c9075dbe78f1e572f5e8238a31c09ec
parentd0d710554ef0454a97dde2c114f7d5b2a3c2b4de
ABI: sysfs-class-hwmon: fix tempY_crit_alarm access rights

This attribute is defined as read-only by all drivers that support it.

It seems that the access rights and description for this attribute were
copied from the intrusionY_alarm, which has indeed RW rights and must be
cleared by the user.

These are the modules that currently use this attribute:
- adt7x10
- i5500_temp
- jc42
- lm83
- lm90
- lm95245
- max31760
- max6621
- mc34vr500
- tmp401
- tmp464
- tmp513

Fix the attribute description and make it read-only.

Fixes: 365b5d63a505 ("ABI: sysfs-class-hwmon: add a description for tempY_crit_alarm")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20231116-hwmon_abi-v1-3-8bfb7f51145a@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/ABI/testing/sysfs-class-hwmon