• J
    hwmon: (w83795) Use 2D arrays for many device attributes · 87df0dad
    Jean Delvare 提交于
    Use 2D arrays for in, fan, temp and dts device attributes. Using
    linear arrays is too risky as we have to skip some groups depending
    on the device model and configuration. Adding or removing an
    attribute would let the driver build silently but then it would crash
    at runtime. With 2D arrays, the consistency checking happens at build
    time, which is much safer.
    Signed-off-by: NJean Delvare <khali@linux-fr.org>
    87df0dad
w83795.c 58.3 KB