summaryrefslogtreecommitdiff
path: root/drivers/mfd/stmpe-i2c.c
diff options
context:
space:
mode:
authorZou Wei <zou_wei@huawei.com>2021-05-12 14:33:46 +0800
committerLee Jones <lee.jones@linaro.org>2021-06-02 10:50:00 +0100
commit4700ef326556ed74aba188f12396740a8c1c21dd (patch)
treec530eaa224c304e28cf85f3e5e06f0afd67bd271 /drivers/mfd/stmpe-i2c.c
parent56a1188159cb2b87fbcb5a7a7afb38a4dd9db0c1 (diff)
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: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/stmpe-i2c.c')
-rw-r--r--drivers/mfd/stmpe-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/stmpe-i2c.c b/drivers/mfd/stmpe-i2c.c
index 61aa020199f5..cd2f45257dc1 100644
--- a/drivers/mfd/stmpe-i2c.c
+++ b/drivers/mfd/stmpe-i2c.c
@@ -109,7 +109,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 = {