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.
While add it, also remove commas after the sentinel entries.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20240522165358.62238-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Lee Jones <lee@kernel.org>
}
static const struct i2c_device_id as3645a_id_table[] = {
- { AS_NAME, 0 },
- { },
+ { AS_NAME },
+ { }
};
MODULE_DEVICE_TABLE(i2c, as3645a_id_table);
MODULE_DEVICE_TABLE(of, an30259a_match_table);
static const struct i2c_device_id an30259a_id[] = {
- { "an30259a", 0 },
- { /* sentinel */ },
+ { "an30259a" },
+ { /* sentinel */ }
};
MODULE_DEVICE_TABLE(i2c, an30259a_id);
static SIMPLE_DEV_PM_OPS(bd2802_pm, bd2802_suspend, bd2802_resume);
static const struct i2c_device_id bd2802_id[] = {
- { "BD2802", 0 },
+ { "BD2802" },
{ }
};
MODULE_DEVICE_TABLE(i2c, bd2802_id);
}
static const struct i2c_device_id blinkm_id[] = {
- {"blinkm", 0},
+ { "blinkm" },
{}
};
}
static const struct i2c_device_id lm3530_id[] = {
- {LM3530_NAME, 0},
+ { LM3530_NAME },
{}
};
MODULE_DEVICE_TABLE(i2c, lm3530_id);
MODULE_DEVICE_TABLE(of, of_lm3532_leds_match);
static const struct i2c_device_id lm3532_id[] = {
- {LM3532_NAME, 0},
+ { LM3532_NAME },
{}
};
MODULE_DEVICE_TABLE(i2c, lm3532_id);
}
static const struct i2c_device_id lm3642_id[] = {
- {LM3642_NAME, 0},
+ { LM3642_NAME },
{}
};
}
static const struct i2c_device_id lm3697_id[] = {
- { "lm3697", 0 },
+ { "lm3697" },
{ }
};
MODULE_DEVICE_TABLE(i2c, lm3697_id);
/* lp3944 i2c driver struct */
static const struct i2c_device_id lp3944_id[] = {
- {"lp3944", 0},
+ { "lp3944" },
{}
};
}
static const struct i2c_device_id lp3952_id[] = {
- {LP3952_NAME, 0},
+ { LP3952_NAME },
{}
};
MODULE_DEVICE_TABLE(i2c, lp3952_id);
}
static const struct i2c_device_id lp5521_id[] = {
- { "lp5521", 0 }, /* Three channel chip */
+ { "lp5521" }, /* Three channel chip */
{ }
};
MODULE_DEVICE_TABLE(i2c, lp5521_id);
}
static const struct i2c_device_id lp5562_id[] = {
- { "lp5562", 0 },
+ { "lp5562" },
{ }
};
MODULE_DEVICE_TABLE(i2c, lp5562_id);
}
static const struct i2c_device_id lp8501_id[] = {
- { "lp8501", 0 },
+ { "lp8501" },
{ }
};
MODULE_DEVICE_TABLE(i2c, lp8501_id);
}
static const struct i2c_device_id lp8860_id[] = {
- { "lp8860", 0 },
+ { "lp8860" },
{ }
};
MODULE_DEVICE_TABLE(i2c, lp8860_id);
};
static const struct i2c_device_id omnia_id[] = {
- { "omnia", 0 },
+ { "omnia" },
{ }
};
MODULE_DEVICE_TABLE(i2c, omnia_id);