lkml.org 
[lkml]   [2023]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] leds: aw2013: Select REGMAP_I2C
    Date
    The AW2013 driver uses devm_regmap_init_i2c, so REGMAP_I2C needs to
    be selected.

    Otherwise build process may fail with:
    ld: drivers/leds/leds-aw2013.o: in function `aw2013_probe':
    leds-aw2013.c:345: undefined reference to `__devm_regmap_init_i2c'

    Signed-off-by: Dang Huynh <danct12@riseup.net>
    ---
    drivers/leds/Kconfig | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
    index b92208eccdea..3132439f99e0 100644
    --- a/drivers/leds/Kconfig
    +++ b/drivers/leds/Kconfig
    @@ -110,6 +110,7 @@ config LEDS_AW200XX
    config LEDS_AW2013
    tristate "LED support for Awinic AW2013"
    depends on LEDS_CLASS && I2C && OF
    + select REGMAP_I2C
    help
    This option enables support for the AW2013 3-channel
    LED driver.
    --
    2.42.0
    \
     
     \ /
      Last update: 2023-11-20 13:47    [W:3.798 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site