Commit c2d894e6 authored by Charles Keepax's avatar Charles Keepax Committed by Pu Wen
Browse files

hwmon: Add convience macro to define simple static sensors

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

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



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

commit c43a113c upstream.

It takes a fair amount of boiler plate code to add new sensors, add a
macro that can be used to specify simple static sensors.

Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarPu Wen <puwen@hygon.cn>
parent 080f0ed8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment