Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31c99ad8 authored by Zou Wei's avatar Zou Wei Committed by Greg Kroah-Hartman
Browse files

mfd: da9052/stmpe: Add and modify MODULE_DEVICE_TABLE



[ Upstream commit 4700ef326556ed74aba188f12396740a8c1c21dd ]

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZou Wei <zou_wei@huawei.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 56f516f8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -118,6 +118,7 @@ static const struct i2c_device_id da9052_i2c_id[] = {
	{"da9053-bc", DA9053_BC},
	{}
};
MODULE_DEVICE_TABLE(i2c, da9052_i2c_id);

#ifdef CONFIG_OF
static const struct of_device_id dialog_dt_ids[] = {
+1 −1
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ static const struct i2c_device_id stmpe_i2c_id[] = {
	{ "stmpe2403", STMPE2403 },
	{ }
};
MODULE_DEVICE_TABLE(i2c, stmpe_id);
MODULE_DEVICE_TABLE(i2c, stmpe_i2c_id);

static struct i2c_driver stmpe_i2c_driver = {
	.driver = {