Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14ce82e5 authored by Axel Lin's avatar Axel Lin Committed by Bryan Wu
Browse files

leds: lm355x: Return proper error for lm3556_indicator_pattern_store error path

parent eccb6638
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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);