提交 14ce82e5 编写于 作者: A Axel Lin 提交者: Bryan Wu

leds: lm355x: Return proper error for lm3556_indicator_pattern_store error path

Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Acked-by: NG.Shark Jeong <gshark.jeong@gmail.com>
Signed-off-by: NBryan Wu <cooloney@gmail.com>
上级 eccb6638
......@@ -408,7 +408,7 @@ static ssize_t lm3556_indicator_pattern_store(struct device *dev,
return size;
out:
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册