From: Armin Wolf Date: Thu, 21 Oct 2021 19:05:30 +0000 (+0200) Subject: hwmon: (dell-smm) Add comment explaining usage of i8k_config_data[] X-Git-Tag: v5.16-rc1~165^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=927d89ee96b3b08cf738eeae5853368d92504164;p=thirdparty%2Flinux.git hwmon: (dell-smm) Add comment explaining usage of i8k_config_data[] 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 Reviewed-by: Pali Rohár Link: https://lore.kernel.org/r/20211021190531.17379-5-W_Armin@gmx.de Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c index 5f0338b4a7170..0e1bc3a2dd12b 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,