Couple of minor hwmon fixes
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJcojsAAAoJEMsfJm/On5mBorQP/ivePAGHHgiAifYzZks3QN7h G90wo/+jeNfM4hxJALGp9djvNGFsr9Cid0Hk1AxQKmhwhvcbQXYIWEZxU5+kntSQ yn/l9EAIwwGnMz65GEPQXDMC2XJCgJiKJvvg2FqJ4plSTKkO6qap00yOnKCUCet/ 4a+CCSy2uc0im5K5kILQK/g3MY5w1PRYLYw1pYhxcViBqZnQeQdSNCialQHbPaos xNQuHEetaeaEk/sL8MRu+bXiBTo3vXlyQc7zdCt0i5p/lUv8qHggitRuVqzP75h5 tQysdVPGvPkHLbg3Pn71cUgryAgVksNdLU97JnRejuduGNEHPltuuK4Yph5OTxPk gR123JmSPxAJUBxap8LLJQqtSbh6kAuaplOHifnP1w+nfp8kL7+Uv9kWYJfCLfig j53XeEYtvaH9pXTOflOWnJS39ZFtcctQNAG++NWZ/YBe7PuNdjsBU1E4T9Tl5Lqo KfqFuhNUBjFyzkjv59KztmqfVkDK9tJytWasuhEh+XQrv5+mmY8MoIKcaILBDwXc +gOqXMLAXjuQgdy9a0zAz6PsZ5PS9QVp7XYYmhyHpOE/qokCU04ymOU1Ag0RAYYJ /7TJt6HEDM+xM31WlKdauUndWz8l9Vgu44CJwlSqlDbPhXWndMUXk+IJChn7GvAY rwiChEd5Fe4CueZWxc4p =qaOb -----END PGP SIGNATURE----- Merge tag 'hwmon-for-v5.1-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging Pull hwmon fixes from Guenter Roeck: "Couple of minor hwmon fixes" * tag 'hwmon-for-v5.1-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: dt-bindings: hwmon: (adc128d818) Specify ti,mode property size hwmon: (ntc_thermistor) Fix temperature type reporting hwmon: (occ) Fix power sensor indexing hwmon: (w83773g) Select REGMAP_I2C to fix build error
This commit is contained in:
commit
4a3164e3d7
@ -26,7 +26,7 @@ Required node properties:
|
||||
|
||||
Optional node properties:
|
||||
|
||||
- ti,mode: Operation mode (see above).
|
||||
- ti,mode: Operation mode (u8) (see above).
|
||||
|
||||
|
||||
Example (operation mode 2):
|
||||
@ -34,5 +34,5 @@ Example (operation mode 2):
|
||||
adc128d818@1d {
|
||||
compatible = "ti,adc128d818";
|
||||
reg = <0x1d>;
|
||||
ti,mode = <2>;
|
||||
ti,mode = /bits/ 8 <2>;
|
||||
};
|
||||
|
@ -1759,6 +1759,7 @@ config SENSORS_VT8231
|
||||
config SENSORS_W83773G
|
||||
tristate "Nuvoton W83773G"
|
||||
depends on I2C
|
||||
select REGMAP_I2C
|
||||
help
|
||||
If you say yes here you get support for the Nuvoton W83773G hardware
|
||||
monitoring chip.
|
||||
|
@ -640,7 +640,7 @@ static const struct hwmon_channel_info ntc_chip = {
|
||||
};
|
||||
|
||||
static const u32 ntc_temp_config[] = {
|
||||
HWMON_T_INPUT, HWMON_T_TYPE,
|
||||
HWMON_T_INPUT | HWMON_T_TYPE,
|
||||
0
|
||||
};
|
||||
|
||||
|
@ -890,6 +890,8 @@ static int occ_setup_sensor_attrs(struct occ *occ)
|
||||
s++;
|
||||
}
|
||||
}
|
||||
|
||||
s = (sensors->power.num_sensors * 4) + 1;
|
||||
} else {
|
||||
for (i = 0; i < sensors->power.num_sensors; ++i) {
|
||||
s = i + 1;
|
||||
@ -918,11 +920,11 @@ static int occ_setup_sensor_attrs(struct occ *occ)
|
||||
show_power, NULL, 3, i);
|
||||
attr++;
|
||||
}
|
||||
|
||||
s = sensors->power.num_sensors + 1;
|
||||
}
|
||||
|
||||
if (sensors->caps.num_sensors >= 1) {
|
||||
s = sensors->power.num_sensors + 1;
|
||||
|
||||
snprintf(attr->name, sizeof(attr->name), "power%d_label", s);
|
||||
attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL,
|
||||
0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user