hwmon: Drop explicit initialization of struct i2c_device_id::driver_data to 0

These drivers don't use the driver_data member of struct i2c_device_id,
so don't explicitly initialize this member.

This prepares putting driver_data in an anonymous union which requires
either no initialization or named designators. But it's also a nice
cleanup on its own.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20240430085654.1028864-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Uwe Kleine-König
2024-04-30 10:56:53 +02:00
committed by Guenter Roeck
parent 801fec8df5
commit d8a66f3621
100 changed files with 119 additions and 119 deletions

View File

@@ -152,7 +152,7 @@ Emerson DS1200 power modules might look as follows::
}
static const struct i2c_device_id ds1200_id[] = {
{"ds1200", 0},
{"ds1200"},
{}
};

View File

@@ -205,7 +205,7 @@ static int ad7414_probe(struct i2c_client *client)
}
static const struct i2c_device_id ad7414_id[] = {
{ "ad7414", 0 },
{ "ad7414" },
{}
};
MODULE_DEVICE_TABLE(i2c, ad7414_id);

View File

@@ -504,7 +504,7 @@ static void adc128_remove(struct i2c_client *client)
}
static const struct i2c_device_id adc128_id[] = {
{ "adc128d818", 0 },
{ "adc128d818" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adc128_id);

View File

@@ -1849,7 +1849,7 @@ static int adm1026_probe(struct i2c_client *client)
}
static const struct i2c_device_id adm1026_id[] = {
{ "adm1026", 0 },
{ "adm1026" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adm1026_id);

View File

@@ -379,7 +379,7 @@ static int adm1029_probe(struct i2c_client *client)
}
static const struct i2c_device_id adm1029_id[] = {
{ "adm1029", 0 },
{ "adm1029" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adm1029_id);

View File

@@ -238,7 +238,7 @@ static int adm1177_probe(struct i2c_client *client)
}
static const struct i2c_device_id adm1177_id[] = {
{"adm1177", 0},
{"adm1177"},
{}
};
MODULE_DEVICE_TABLE(i2c, adm1177_id);

View File

@@ -88,8 +88,8 @@ static int adt7410_i2c_probe(struct i2c_client *client)
}
static const struct i2c_device_id adt7410_ids[] = {
{ "adt7410", 0 },
{ "adt7420", 0 },
{ "adt7410" },
{ "adt7420" },
{}
};
MODULE_DEVICE_TABLE(i2c, adt7410_ids);

View File

@@ -697,7 +697,7 @@ static int adt7411_probe(struct i2c_client *client)
}
static const struct i2c_device_id adt7411_id[] = {
{ "adt7411", 0 },
{ "adt7411" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adt7411_id);

View File

@@ -1809,7 +1809,7 @@ static int adt7462_probe(struct i2c_client *client)
}
static const struct i2c_device_id adt7462_id[] = {
{ "adt7462", 0 },
{ "adt7462" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adt7462_id);

View File

@@ -1304,7 +1304,7 @@ static void adt7470_remove(struct i2c_client *client)
}
static const struct i2c_device_id adt7470_id[] = {
{ "adt7470", 0 },
{ "adt7470" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adt7470_id);

View File

@@ -213,7 +213,7 @@ static struct asb100_data *asb100_update_device(struct device *dev);
static void asb100_init_client(struct i2c_client *client);
static const struct i2c_device_id asb100_id[] = {
{ "asb100", 0 },
{ "asb100" },
{ }
};
MODULE_DEVICE_TABLE(i2c, asb100_id);

View File

@@ -278,7 +278,7 @@ static int atxp1_probe(struct i2c_client *client)
};
static const struct i2c_device_id atxp1_id[] = {
{ "atxp1", 0 },
{ "atxp1" },
{ }
};
MODULE_DEVICE_TABLE(i2c, atxp1_id);

View File

@@ -233,7 +233,7 @@ static int ds620_probe(struct i2c_client *client)
}
static const struct i2c_device_id ds620_id[] = {
{"ds620", 0},
{"ds620"},
{}
};

View File

@@ -620,7 +620,7 @@ emc2103_probe(struct i2c_client *client)
}
static const struct i2c_device_id emc2103_ids[] = {
{ "emc2103", 0, },
{ "emc2103" },
{ /* LIST END */ }
};
MODULE_DEVICE_TABLE(i2c, emc2103_ids);

View File

@@ -47,10 +47,10 @@ enum emc230x_product_id {
};
static const struct i2c_device_id emc2305_ids[] = {
{ "emc2305", 0 },
{ "emc2303", 0 },
{ "emc2302", 0 },
{ "emc2301", 0 },
{ "emc2305" },
{ "emc2303" },
{ "emc2302" },
{ "emc2301" },
{ }
};
MODULE_DEVICE_TABLE(i2c, emc2305_ids);

View File

@@ -464,7 +464,7 @@ static int emc6w201_probe(struct i2c_client *client)
}
static const struct i2c_device_id emc6w201_id[] = {
{ "emc6w201", 0 },
{ "emc6w201" },
{ }
};
MODULE_DEVICE_TABLE(i2c, emc6w201_id);

View File

@@ -50,7 +50,7 @@
static const unsigned short normal_i2c[] = { 0x73, I2C_CLIENT_END };
static const struct i2c_device_id fts_id[] = {
{ "ftsteutates", 0 },
{ "ftsteutates" },
{ }
};
MODULE_DEVICE_TABLE(i2c, fts_id);

View File

@@ -197,7 +197,7 @@ static int g760a_probe(struct i2c_client *client)
}
static const struct i2c_device_id g760a_id[] = {
{ "g760a", 0 },
{ "g760a" },
{ }
};
MODULE_DEVICE_TABLE(i2c, g760a_id);

View File

@@ -44,8 +44,8 @@
#define DRVNAME "g762"
static const struct i2c_device_id g762_id[] = {
{ "g762", 0 },
{ "g763", 0 },
{ "g762" },
{ "g763" },
{ }
};
MODULE_DEVICE_TABLE(i2c, g762_id);

View File

@@ -642,7 +642,7 @@ static int gl518_probe(struct i2c_client *client)
}
static const struct i2c_device_id gl518_id[] = {
{ "gl518sm", 0 },
{ "gl518sm" },
{ }
};
MODULE_DEVICE_TABLE(i2c, gl518_id);

Some files were not shown because too many files have changed in this diff Show More