mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
mfd: da9052/stmpe: Add and modify MODULE_DEVICE_TABLE
[ Upstream commit 4700ef3265
]
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: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f83bd690f6
commit
b5d7c7be78
2 changed files with 2 additions and 1 deletions
|
@ -118,6 +118,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[] = {
|
||||||
{ "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 = {
|
||||||
|
|
Loading…
Reference in a new issue