提交 4700ef32 编写于 作者: Z Zou Wei 提交者: Lee Jones

mfd: da9052/stmpe: Add and modify MODULE_DEVICE_TABLE

This patch adds/modifies MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.
Reported-by: NHulk Robot <hulkci@huawei.com>
Signed-off-by: NZou Wei <zou_wei@huawei.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 56a11881
...@@ -113,6 +113,7 @@ static const struct i2c_device_id da9052_i2c_id[] = { ...@@ -113,6 +113,7 @@ static const struct i2c_device_id da9052_i2c_id[] = {
{"da9053-bc", DA9053_BC}, {"da9053-bc", DA9053_BC},
{} {}
}; };
MODULE_DEVICE_TABLE(i2c, da9052_i2c_id);
#ifdef CONFIG_OF #ifdef CONFIG_OF
static const struct of_device_id dialog_dt_ids[] = { static const struct of_device_id dialog_dt_ids[] = {
......
...@@ -109,7 +109,7 @@ static const struct i2c_device_id stmpe_i2c_id[] = { ...@@ -109,7 +109,7 @@ static const struct i2c_device_id stmpe_i2c_id[] = {
{ "stmpe2403", STMPE2403 }, { "stmpe2403", STMPE2403 },
{ } { }
}; };
MODULE_DEVICE_TABLE(i2c, stmpe_id); MODULE_DEVICE_TABLE(i2c, stmpe_i2c_id);
static struct i2c_driver stmpe_i2c_driver = { static struct i2c_driver stmpe_i2c_driver = {
.driver = { .driver = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册