Commit dc36d7e7 authored by Axel Lin's avatar Axel Lin Committed by Linus Torvalds

drivers/video/backlight/lm3639_bl.c: return proper error in lm3639_bled_mode_store() error paths

Signed-off-by: default avatarAxel Lin <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 2702b152
......@@ -206,11 +206,11 @@ static ssize_t lm3639_bled_mode_store(struct device *dev,
dev_err(pchip->dev, "%s:i2c access fail to register\n", __func__);
return size;
return ret;
dev_err(pchip->dev, "%s:input conversion fail\n", __func__);
return size;
return ret;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment