summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-lm355x.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2012-10-07 09:05:36 -0700
committerBryan Wu <cooloney@gmail.com>2012-11-26 14:28:42 -0800
commit14ce82e536455ace3d6ca70f77bbc2c6b25b8268 (patch)
treeda0b38719ef3acaacf4ba854785bcb8b20c1f98c /drivers/leds/leds-lm355x.c
parenteccb6638569ae80eb4cb198640baac229fde4ff0 (diff)
downloadlinux-14ce82e536455ace3d6ca70f77bbc2c6b25b8268.tar.bz2
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>
Diffstat (limited to 'drivers/leds/leds-lm355x.c')
-rw-r--r--drivers/leds/leds-lm355x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-lm355x.c b/drivers/leds/leds-lm355x.c
index 065ec015d67a..8f4e8e21ddb5 100644
--- a/drivers/leds/leds-lm355x.c
+++ b/drivers/leds/leds-lm355x.c
@@ -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);