drivers/video/backlight/lm3639_bl.c: return proper error in lm3639_bled_mode_store() error paths
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
2702b1526c
commit
dc36d7e7cd
1 changed files with 2 additions and 2 deletions
|
@ -206,11 +206,11 @@ static ssize_t lm3639_bled_mode_store(struct device *dev,
|
||||||
|
|
||||||
out:
|
out:
|
||||||
dev_err(pchip->dev, "%s:i2c access fail to register\n", __func__);
|
dev_err(pchip->dev, "%s:i2c access fail to register\n", __func__);
|
||||||
return size;
|
return ret;
|
||||||
|
|
||||||
out_input:
|
out_input:
|
||||||
dev_err(pchip->dev, "%s:input conversion fail\n", __func__);
|
dev_err(pchip->dev, "%s:input conversion fail\n", __func__);
|
||||||
return size;
|
return ret;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue