hwmon: (pmbus/tps53679) Fix build warning
Subsystems (4)
Guenter Roeck
maintainerPATCH 1/24 hwmon: (pmbus/tps53679) Fix build warning
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/pmbus/tps53679.c:100:34: warning:
‘tps53679_of_match’ defined but not used
Marking tps53679_of_match as __maybe_unused fixes the problem.
--- drivers/hwmon/pmbus/tps53679.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/pmbus/tps53679.c +1 -1
@@ -97,7 +97,7 @@ static const struct i2c_device_id tps53679_id[] = {MODULE_DEVICE_TABLE (i2c, tps53679_id); -static const struct of_device_id tps53679_of_match[] = { +static const struct of_device_id __maybe_unused tps53679_of_match[] = { {.compatible ="ti,tps53679" }, {} };
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 2/24 hwmon: (pmbus/ucd900) Fix build warning
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/pmbus/ucd9000.c:154:34: warning:
‘ucd9000_of_match’ defined but not used
Mark ucd9000_of_match as __maybe_unused to fix the problem.
--- drivers/hwmon/pmbus/ucd9000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/pmbus/ucd9000.c +1 -1
@@ -151,7 +151,7 @@ static const struct i2c_device_id ucd9000_id[] = { };MODULE_DEVICE_TABLE (i2c, ucd9000_id); -static const struct of_device_id ucd9000_of_match[] = { +static const struct of_device_id __maybe_unused ucd9000_of_match[] = { { .compatible ="ti,ucd9000" , .data = (void *)ucd9000
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 3/24 hwmon: (ltc4151) Fix build warning
In reply to Guenter RoeckIf CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/ltc4151.c:211:34: warning:
‘ltc4151_match’ defined but not used
Mark ltc4151_match as __maybe_unused to fix the problem.
--- drivers/hwmon/ltc4151.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/ltc4151.c +1 -1
@@ -208,7 +208,7 @@ static const struct i2c_device_id ltc4151_id[] = { };MODULE_DEVICE_TABLE (i2c, ltc4151_id); -static const struct of_device_id ltc4151_match[] = { +static const struct of_device_id __maybe_unused ltc4151_match[] = { { .compatible ="lltc,ltc4151" }, {}, };
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 4/24 hwmon: (lm90) Fix build warning
In reply to Guenter RoeckIf CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/lm90.c:239:34: warning:
‘lm90_of_match’ defined but not used
Mark lm90_of_match as __maybe_unused to fix the problem.
--- drivers/hwmon/lm90.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/lm90.c +1 -1
@@ -236,7 +236,7 @@ static const struct i2c_device_id lm90_id[] = { };MODULE_DEVICE_TABLE (i2c, lm90_id); -static const struct of_device_id lm90_of_match[] = { +static const struct of_device_id __maybe_unused lm90_of_match[] = { { .compatible ="adi,adm1032" , .data = (void *)adm1032
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 5/24 hwmon: (adc128d818) Fix build warning
In reply to Guenter RoeckIf CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/adc128d818.c:524:34: warning:
‘adc128_of_match’ defined but not used
Mark adc128_of_match as __maybe_unused to fix the problem.
--- drivers/hwmon/adc128d818.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/adc128d818.c +1 -1
@@ -521,7 +521,7 @@ static const struct i2c_device_id adc128_id[] = { };MODULE_DEVICE_TABLE (i2c, adc128_id); -static const struct of_device_id adc128_of_match[] = { +static const struct of_device_id __maybe_unused adc128_of_match[] = { { .compatible ="ti,adc128d818" }, { }, };
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 6/24 hwmon: (ad7414) Fix build warning
In reply to Guenter RoeckIf CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/ad7414.c:218:34: warning:
‘ad7414_of_match’ defined but not used
Marking ad7414_of_match as __mayybe_unused fixes the problem.
--- drivers/hwmon/ad7414.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/ad7414.c +1 -1
@@ -215,7 +215,7 @@ static const struct i2c_device_id ad7414_id[] = { };MODULE_DEVICE_TABLE (i2c, ad7414_id); -static const struct of_device_id ad7414_of_match[] = { +static const struct of_device_id __maybe_unused ad7414_of_match[] = { { .compatible ="ad,ad7414" }, { }, };
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 7/24 hwmon: (tmp102) Fix build warning
In reply to Guenter RoeckIf CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/tmp102.c:324:34: warning:
‘tmp102_of_match’ defined but not used
Mark it as __maybe_unused to fix the problem.
--- drivers/hwmon/tmp102.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/tmp102.c +1 -1
@@ -303,7 +303,7 @@ static const struct i2c_device_id tmp102_id[] = { };MODULE_DEVICE_TABLE (i2c, tmp102_id); -static const struct of_device_id tmp102_of_match[] = { +static const struct of_device_id __maybe_unused tmp102_of_match[] = { { .compatible ="ti,tmp102" }, { }, };
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 8/24 hwmon: (tmp103) Fix build warning
In reply to Guenter RoeckIf CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/tmp103.c:173:34: warning:
‘tmp103_of_match’ defined but not used
Marking tmp103_of_match as __maybe_unused fixes the problem.
--- drivers/hwmon/tmp103.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/tmp103.c +1 -1
@@ -170,7 +170,7 @@ static const struct i2c_device_id tmp103_id[] = { };MODULE_DEVICE_TABLE (i2c, tmp103_id); -static const struct of_device_id tmp103_of_match[] = { +static const struct of_device_id __maybe_unused tmp103_of_match[] = { { .compatible ="ti,tmp103" }, { }, };
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 9/24 hwmon: (ads1015) Fix build warning
In reply to Guenter RoeckIf CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/ads1015.c:310:34: warning:
‘ads1015_of_match’ defined but not used
Marking ads1015_of_match as __maybe_unused fixes the problem.
--- drivers/hwmon/ads1015.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/ads1015.c +1 -1
@@ -307,7 +307,7 @@ static const struct i2c_device_id ads1015_id[] = { };MODULE_DEVICE_TABLE (i2c, ads1015_id); -static const struct of_device_id ads1015_of_match[] = { +static const struct of_device_id __maybe_unused ads1015_of_match[] = { { .compatible ="ti,ads1015" , .data = (void *)ads1015
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 10/24 hwmon: (adt7475) Fix build warning
In reply to Guenter RoeckIf CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/adt7475.c:171:34: warning:
‘adt7475_of_match’ defined but not used
Mark adt7475_of_match as __maybe_unused to fix the problem.
--- drivers/hwmon/adt7475.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/adt7475.c +1 -1
@@ -168,7 +168,7 @@ static const struct i2c_device_id adt7475_id[] = { };MODULE_DEVICE_TABLE (i2c, adt7475_id); -static const struct of_device_id adt7475_of_match[] = { +static const struct of_device_id __maybe_unused adt7475_of_match[] = { { .compatible ="adi,adt7473" , .data = (void *)adt7473
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 11/24 hwmon: (hih6130) Fix build warning
In reply to Guenter RoeckIf CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/hih6130.c:255:34: warning:
‘hih6130_of_match’ defined but not used
Mark hih6130_of_match as __maybe_unused to fix the problem.
--- drivers/hwmon/hih6130.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/hih6130.c +1 -1
@@ -252,7 +252,7 @@ static const struct i2c_device_id hih6130_id[] = { };MODULE_DEVICE_TABLE (i2c, hih6130_id); -static const struct of_device_id hih6130_of_match[] = { +static const struct of_device_id __maybe_unused hih6130_of_match[] = { { .compatible ="honeywell,hih6130" , }, { } };
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 12/24 hwmon: (ads7828) Fix build warning
In reply to Guenter RoeckIf CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/ads7828.c:203:34: warning:
‘ads7828_of_match’ defined but not used
Mark ads7828_of_match as __maybe_unused to fix the problem.
--- drivers/hwmon/ads7828.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/ads7828.c +1 -1
@@ -200,7 +200,7 @@ static const struct i2c_device_id ads7828_device_ids[] = { };MODULE_DEVICE_TABLE (i2c, ads7828_device_ids); -static const struct of_device_id ads7828_of_match[] = { +static const struct of_device_id __maybe_unused ads7828_of_match[] = { { .compatible ="ti,ads7828" , .data = (void *)ads7828
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 13/24 hwmon: (w83773g) Fix build warning
In reply to Guenter RoeckIf CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/w83773g.c:47:34: warning:
‘w83773_of_match’ defined but not used
Mark w83773_of_match as __maybe_unused to fix the problem.
--- drivers/hwmon/w83773g.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/w83773g.c +1 -1
@@ -44,7 +44,7 @@ static const struct i2c_device_id w83773_id[] = {MODULE_DEVICE_TABLE (i2c, w83773_id); -static const struct of_device_id w83773_of_match[] = { +static const struct of_device_id __maybe_unused w83773_of_match[] = { { .compatible ="nuvoton,w83773g" },
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 14/24 hwmon: (lm75) Fix build warning
In reply to Guenter RoeckIf CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/lm75.c:446:34: warning:
‘lm75_of_match’ defined but not used
Mark lm75_of_match as __maybe_unused to fix the problem.
--- drivers/hwmon/lm75.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/lm75.c +1 -1
@@ -419,7 +419,7 @@ static const struct i2c_device_id lm75_ids[] = { };MODULE_DEVICE_TABLE (i2c, lm75_ids); -static const struct of_device_id lm75_of_match[] = { +static const struct of_device_id __maybe_unused lm75_of_match[] = { { .compatible ="adi,adt75" , .data = (void *)adt75
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 15/24 hwmon: (ina209) Fix build warning
In reply to Guenter RoeckIf CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/ina209.c:590:34: warning:
‘ina209_of_match’ defined but not used
Mark ina209_of_match as __maybe_unused to fix the problem.
--- drivers/hwmon/ina209.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/ina209.c +1 -1
@@ -587,7 +587,7 @@ static const struct i2c_device_id ina209_id[] = { };MODULE_DEVICE_TABLE (i2c, ina209_id); -static const struct of_device_id ina209_of_match[] = { +static const struct of_device_id __maybe_unused ina209_of_match[] = { { .compatible ="ti,ina209" }, { }, };
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 16/24 hwmon: (max6697) Fix build warning
In reply to Guenter RoeckIf CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/max6697.c:653:34: warning:
‘max6697_of_match’ defined but not used
Mark max6697_of_match as __maybe_unused to fix the problem.
--- drivers/hwmon/max6697.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/max6697.c +1 -1
@@ -650,7 +650,7 @@ static const struct i2c_device_id max6697_id[] = { };MODULE_DEVICE_TABLE (i2c, max6697_id); -static const struct of_device_id max6697_of_match[] = { +static const struct of_device_id __maybe_unused max6697_of_match[] = { { .compatible ="maxim,max6581" , .data = (void *)max6581
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 17/24 hwmon: (max6650) Fix build warning
In reply to Guenter RoeckIf CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/max6650.c:137:34: warning:
‘max6650_dt_match’ defined but not used
Mark max6650_dt_match as __maybe_unused to fix the problem.
--- drivers/hwmon/max6650.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/max6650.c +1 -1
@@ -134,7 +134,7 @@ static const u8 tach_reg[] = { MAX6650_REG_TACH3, }; -static const struct of_device_id max6650_dt_match[] = { +static const struct of_device_id __maybe_unused max6650_dt_match[] = { { .compatible ="maxim,max6650" , .data = (void *)1
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 18/24 hwmon: (lm85) Fix build warning
In reply to Guenter RoeckThe following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/lm85.c:1645:34: warning:
‘lm85_of_match’ defined but not used
Mark lm85_of_match as __maybe_unused to ix the problem.
--- drivers/hwmon/lm85.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/lm85.c +1 -1
@@ -1642,7 +1642,7 @@ static const struct i2c_device_id lm85_id[] = { };MODULE_DEVICE_TABLE (i2c, lm85_id); -static const struct of_device_id lm85_of_match[] = { +static const struct of_device_id __maybe_unused lm85_of_match[] = { { .compatible ="adi,adm1027" , .data = (void *)adm1027
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 19/24 hwmon: (max6621) Fix build warning
In reply to Guenter RoeckThe following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/max6621.c:573:34: warning:
‘max6621_of_match’ defined but not used
Mark max6621_of_match as __maybe_unused to fix the problem.
--- drivers/hwmon/max6621.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/max6621.c +1 -1
@@ -552,7 +552,7 @@ static const struct i2c_device_id max6621_id[] = { };MODULE_DEVICE_TABLE (i2c, max6621_id); -static const struct of_device_id max6621_of_match[] = { +static const struct of_device_id __maybe_unused max6621_of_match[] = { { .compatible ="maxim,max6621" }, { } };
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 20/24 hwmon: (stts751) Fix build warning
In reply to Guenter RoeckThe following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/stts751.c:88:34: warning:
‘stts751_of_match’ defined but not used
Mark stts751_of_match as __maybe_unused to fix the problem.
--- drivers/hwmon/stts751.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/stts751.c +1 -1
@@ -85,7 +85,7 @@ static const struct i2c_device_id stts751_id[] = { { } }; -static const struct of_device_id stts751_of_match[] = { +static const struct of_device_id __maybe_unused stts751_of_match[] = { { .compatible ="stts751" }, { }, };
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 21/24 hwmon: (tmp421) Fix build warning
In reply to Guenter RoeckThe following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/tmp421.c:73:34: warning:
‘tmp421_of_match’ defined but not used
Mark tmp421_of_match as __maybe_unused to fix the problem.
--- drivers/hwmon/tmp421.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/tmp421.c +1 -1
@@ -70,7 +70,7 @@ static const struct i2c_device_id tmp421_id[] = { };MODULE_DEVICE_TABLE (i2c, tmp421_id); -static const struct of_device_id tmp421_of_match[] = { +static const struct of_device_id __maybe_unused tmp421_of_match[] = { { .compatible ="ti,tmp421" , .data = (void *)2
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 22/24 hwmon: lm95245: Fix build warnings
In reply to Guenter RoeckThe following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/lm95245.c:626:34: warning:
‘lm95245_of_match’ defined but not used
Mark lm95245_of_match as __maybe_unused to fix the problem.
The following build warning is always seen.
drivers/hwmon/lm95245.c:95:17: warning:
‘lm95245_reg_address’ defined but not used
The array is no longer used since commit c0a4b9ec1b43 ("hwmon: (lm95245) Use new hwmon registration API"). Remove it.
--- drivers/hwmon/lm95245.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-)
drivers/hwmon/lm95245.c +1 -14
@@ -92,19 +92,6 @@ static const unsigned short normal_i2c[] = {#define LM95235_REVISION 0xB1#define LM95245_REVISION 0xB3 -static const u8 lm95245_reg_address[] = { -LM95245_REG_R_LOCAL_TEMPH_S , -LM95245_REG_R_LOCAL_TEMPL_S , -LM95245_REG_R_REMOTE_TEMPH_S , -LM95245_REG_R_REMOTE_TEMPL_S , -LM95245_REG_R_REMOTE_TEMPH_U , -LM95245_REG_R_REMOTE_TEMPL_U , -LM95245_REG_RW_LOCAL_OS_TCRIT_LIMIT , -LM95245_REG_RW_REMOTE_TCRIT_LIMIT , -LM95245_REG_RW_COMMON_HYSTERESIS , -LM95245_REG_R_STATUS1 , -}; -/* Client data (each client gets its own) */ struct lm95245_data {struct regmap *regmap;
@@ -607,7 +594,7 @@ static const struct i2c_device_id lm95245_id[] = { };MODULE_DEVICE_TABLE (i2c, lm95245_id); -static const struct of_device_id lm95245_of_match[] = { +static const struct of_device_id __maybe_unused lm95245_of_match[] = { { .compatible ="national,lm95235" }, { .compatible ="national,lm95245" }, { },
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 23/24 hwmon: (lm63) Fix build warning
In reply to Guenter RoeckThe following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/lm63.c:1156:34: warning:
‘lm63_of_match’ defined but not used
Mark lm63_of_match as __maybe_unused to fix the problem.
--- drivers/hwmon/lm63.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/lm63.c +1 -1
@@ -1153,7 +1153,7 @@ static const struct i2c_device_id lm63_id[] = { };MODULE_DEVICE_TABLE (i2c, lm63_id); -static const struct of_device_id lm63_of_match[] = { +static const struct of_device_id __maybe_unused lm63_of_match[] = { { .compatible ="national,lm63" , .data = (void *)lm63
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 24/24 hwmon: (ina2xx) Fix build warning
In reply to Guenter RoeckThe following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/ina2xx.c:510:34: warning:
‘ina2xx_of_match’ defined but not used
Mark ina2xx_of_match as __maybe_unused to fix the problem.
--- drivers/hwmon/ina2xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/ina2xx.c +1 -1
@@ -507,7 +507,7 @@ static const struct i2c_device_id ina2xx_id[] = { };MODULE_DEVICE_TABLE (i2c, ina2xx_id); -static const struct of_device_id ina2xx_of_match[] = { +static const struct of_device_id __maybe_unused ina2xx_of_match[] = { { .compatible ="ti,ina219" , .data = (void *)ina219
Signature · 1 line
2.7.4