mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 20:48:49 +08:00
leds: lm355x: Return proper error for lm3556_indicator_pattern_store error path
Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: G.Shark Jeong <gshark.jeong@gmail.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>
This commit is contained in:
parent
eccb663856
commit
14ce82e536
@ -408,7 +408,7 @@ static ssize_t lm3556_indicator_pattern_store(struct device *dev,
|
|||||||
return size;
|
return size;
|
||||||
out:
|
out:
|
||||||
dev_err(chip->dev, "%s:i2c access fail to register\n", __func__);
|
dev_err(chip->dev, "%s:i2c access fail to register\n", __func__);
|
||||||
return size;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static DEVICE_ATTR(pattern, 0666, NULL, lm3556_indicator_pattern_store);
|
static DEVICE_ATTR(pattern, 0666, NULL, lm3556_indicator_pattern_store);
|
||||||
|
Loading…
Reference in New Issue
Block a user