* [PATCH -next] mfd: da9052/stmpe: Add and modify MODULE_DEVICE_TABLE
@ 2021-05-12 6:33 Zou Wei
2021-05-19 12:23 ` Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Zou Wei @ 2021-05-12 6:33 UTC (permalink / raw)
To: support.opensource, lee.jones, mcoquelin.stm32, alexandre.torgue
Cc: linux-kernel, linux-stm32, linux-arm-kernel, Zou Wei
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>
---
drivers/mfd/da9052-i2c.c | 1 +
drivers/mfd/stmpe-i2c.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mfd/da9052-i2c.c b/drivers/mfd/da9052-i2c.c
index 47556d2d..8ebfc7b 100644
--- a/drivers/mfd/da9052-i2c.c
+++ b/drivers/mfd/da9052-i2c.c
@@ -113,6 +113,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[] = {
diff --git a/drivers/mfd/stmpe-i2c.c b/drivers/mfd/stmpe-i2c.c
index 61aa020..cd2f452 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 = {
--
2.6.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] mfd: da9052/stmpe: Add and modify MODULE_DEVICE_TABLE
2021-05-12 6:33 [PATCH -next] mfd: da9052/stmpe: Add and modify MODULE_DEVICE_TABLE Zou Wei
@ 2021-05-19 12:23 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2021-05-19 12:23 UTC (permalink / raw)
To: Zou Wei
Cc: support.opensource, mcoquelin.stm32, alexandre.torgue,
linux-kernel, linux-stm32, linux-arm-kernel
On Wed, 12 May 2021, Zou Wei wrote:
> 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>
> ---
> drivers/mfd/da9052-i2c.c | 1 +
> drivers/mfd/stmpe-i2c.c | 2 +-
> 2 files changed, 2 insertions(+), 1 deletion(-)
Applied, thanks.
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-19 12:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-12 6:33 [PATCH -next] mfd: da9052/stmpe: Add and modify MODULE_DEVICE_TABLE Zou Wei
2021-05-19 12:23 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).