lkml.org 
[lkml]   [2021]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.19 338/421] mfd: da9052/stmpe: Add and modify MODULE_DEVICE_TABLE
    Date
    From: Zou Wei <zou_wei@huawei.com>

    [ 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: 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>
    ---
    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 578e881067a5..4094f97ec7dc 100644
    --- a/drivers/mfd/da9052-i2c.c
    +++ b/drivers/mfd/da9052-i2c.c
    @@ -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[] = {
    diff --git a/drivers/mfd/stmpe-i2c.c b/drivers/mfd/stmpe-i2c.c
    index 863c39a3353c..d284df25c76b 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.30.2


    \
     
     \ /
      Last update: 2021-07-19 19:11    [W:2.736 / U:0.124 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site