Message ID | 20211021190531.17379-5-W_Armin@gmx.de (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | hwmon: (dell-smm) Miscellaneous Improvments | expand |
On Thursday 21 October 2021 21:05:30 W_Armin@gmx.de wrote: > From: Armin Wolf <W_Armin@gmx.de> > > i8k_config_data[] should only be used for applying device specific > quirks in case autoconfig does not work properly on certain > devices. > > Signed-off-by: Armin Wolf <W_Armin@gmx.de> Reviewed-by: Pali Rohár <pali@kernel.org> > --- > drivers/hwmon/dell-smm-hwmon.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c > index 5f0338b4a717..0e1bc3a2dd12 100644 > --- a/drivers/hwmon/dell-smm-hwmon.c > +++ b/drivers/hwmon/dell-smm-hwmon.c > @@ -996,6 +996,11 @@ enum i8k_configs { > DELL_XPS, > }; > > +/* > + * Only use for machines which need some special configuration > + * in order to work correctly (e.g. if autoconfig fails on this machines). > + */ > + > static const struct i8k_config_data i8k_config_data[] __initconst = { > [DELL_LATITUDE_D520] = { > .fan_mult = 1, > -- > 2.20.1 >
diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c index 5f0338b4a717..0e1bc3a2dd12 100644 --- a/drivers/hwmon/dell-smm-hwmon.c +++ b/drivers/hwmon/dell-smm-hwmon.c @@ -996,6 +996,11 @@ enum i8k_configs { DELL_XPS, }; +/* + * Only use for machines which need some special configuration + * in order to work correctly (e.g. if autoconfig fails on this machines). + */ + static const struct i8k_config_data i8k_config_data[] __initconst = { [DELL_LATITUDE_D520] = { .fan_mult = 1,