lkml.org 
[lkml]   [2022]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/4] leds: flash: mt6360: Fix the wrong enable_reg in multicolor brightness set
    Date
    From: ChiYuan Huang <cy_huang@richtek.com>

    Fix the wrong enable_reg in multicolor brightness set.

    Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
    ---
    drivers/leds/flash/leds-mt6360.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/drivers/leds/flash/leds-mt6360.c b/drivers/leds/flash/leds-mt6360.c
    index e1066a5..712cd46 100644
    --- a/drivers/leds/flash/leds-mt6360.c
    +++ b/drivers/leds/flash/leds-mt6360.c
    @@ -115,7 +115,8 @@ static int mt6360_mc_brightness_set(struct led_classdev *lcdev,
    struct mc_subled *subled = mccdev->subled_info + i;

    real_bright = min(lcdev->max_brightness, subled->brightness);
    - ret = regmap_update_bits(priv->regmap, MT6360_REG_ISNK(i),
    + ret = regmap_update_bits(priv->regmap,
    + MT6360_REG_ISNK(subled->channel),
    MT6360_ISNK_MASK, real_bright);
    if (ret)
    goto out;
    --
    2.7.4
    \
     
     \ /
      Last update: 2022-04-28 11:47    [W:5.058 / U:0.244 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site