extcon: max8997: Fix return value
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 8 Apr 2013 00:13:18 +0000 (09:13 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 8 Apr 2013 22:53:46 +0000 (07:53 +0900)
commit3ad9e86d54ed2770aa693a90a0872cbe7ffc6831
treeecc8e3afa3a8e276eddba3a5427756d1ef4e00ca
parentc2536543d53be247786b8beb7c505c629fd55813
extcon: max8997: Fix return value

Return the value obtained from the function instead of hardcoding.
Fixes the following warnings:
drivers/extcon/extcon-max8997.c:235 max8997_muic_set_path() info:
why not propagate 'ret' from max8997_update_reg() instead of (-11)?
drivers/extcon/extcon-max8997.c:248 max8997_muic_set_path() info:
why not propagate 'ret' from max8997_update_reg() instead of (-11)?

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
drivers/extcon/extcon-max8997.c