power: change from meaningless value to error number
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 15 Dec 2016 11:49:50 +0000 (20:49 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 11 Jan 2017 10:40:14 +0000 (19:40 +0900)
commit505cf4750ae55e711663538b3ec7a294c08e7417
tree43f8c393b19f0946457b1beda94d228b1e6fc6e0
parent9c720c815b1b1e95fb13153396417dddf323511d
power: change from meaningless value to error number

'-1' is absolutely meaningless value.
This patch changed from meaningless value to error number.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
15 files changed:
drivers/power/axp152.c
drivers/power/axp209.c
drivers/power/battery/bat_trats2.c
drivers/power/exynos-tmu.c
drivers/power/fuel_gauge/fg_max17042.c
drivers/power/mfd/fg_max77693.c
drivers/power/mfd/pmic_max77693.c
drivers/power/palmas.c
drivers/power/pmic/pmic_hi6553.c
drivers/power/pmic/pmic_max77686.c
drivers/power/pmic/pmic_max8997.c
drivers/power/power_core.c
drivers/power/power_i2c.c
drivers/power/power_spi.c
drivers/power/tps6586x.c