]> git.sur5r.net Git - u-boot/blobdiff - drivers/power/battery/bat_trats2.c
spi: xilinx_spi: Modify transfer logic xilinx_spi_xfer() function
[u-boot] / drivers / power / battery / bat_trats2.c
index 57221adf81891acc45ea28d2903547013ab09d59..bb21cd7ff82fb9ebb54e484f7ec3c4fdd1c49522 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  *  Copyright (C) 2013 Samsung Electronics
  *  Piotr Wilczek <p.wilczek@samsung.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -18,7 +17,7 @@ static int power_battery_charge(struct pmic *bat)
        struct power_battery *p_bat = bat->pbat;
 
        if (bat->chrg->chrg_state(p_bat->chrg, PMIC_CHARGER_ENABLE, 450))
-               return -1;
+               return -EINVAL;
 
        return 0;
 }