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:Guenter Roeck <linux@roeck-us.net> Signed-off-by:
Pu Wen <puwen@hygon.cn>
Loading
Please sign in to comment