]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/video/backlight/lm3639_bl.c
drivers/video/backlight/lm3639_bl.c: return proper error in lm3639_bled_mode_store...
[~shefty/rdma-dev.git] / drivers / video / backlight / lm3639_bl.c
index c6915c6c3cd1e5fc3941a8a3e6fe242fa9db0310..585949b570550fd5e681b23a2564f8f65eb8f83a 100644 (file)
@@ -206,11 +206,11 @@ static ssize_t lm3639_bled_mode_store(struct device *dev,
 
 out:
        dev_err(pchip->dev, "%s:i2c access fail to register\n", __func__);
-       return size;
+       return ret;
 
 out_input:
        dev_err(pchip->dev, "%s:input conversion fail\n", __func__);
-       return size;
+       return ret;
 
 }