Commit c713e413 authored by Guenter Roeck's avatar Guenter Roeck Committed by Pu Wen
Browse files

hwmon: Introduce SENSOR_DEVICE_ATTR_{RO, RW, WO} and variants

mainline inclusion
from mainline-v5.0-rc1
commit a5c47c0d
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I7DX6V
CVE: NA

Reference: https://git.kernel.org/torvalds/c/a5c47c0d388b939dd578fd466aa804b7f2445390



---------------------------

commit a5c47c0d upstream.

Introduce SENSOR_DEVICE_ATTR_{RO,RW,WO} and SENSOR_DEVICE_ATTR_2_{RO,RW,WO}
as simplified variants of SENSOR_DEVICE_ATTR and SENSOR_DEVICE_ATTR_2 to
simplify the source code, improve readbility, and reduce the chance of
inconsistencies.

Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarPu Wen <puwen@hygon.cn>
parent 9bcfc92c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment