hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/drivers/power/supply/sbs-charger.c
....@@ -1,10 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) 2016, Prodys S.L.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation; either version 2 of the License, or
7
- * (at your option) any later version.
84 *
95 * This adds support for sbs-charger compilant chips as defined here:
106 * http://sbs-forum.org/specs/sbc110.pdf
....@@ -29,7 +25,7 @@
2925 #define SBS_CHARGER_REG_STATUS 0x13
3026 #define SBS_CHARGER_REG_ALARM_WARNING 0x16
3127
32
-#define SBS_CHARGER_STATUS_CHARGE_INHIBITED BIT(1)
28
+#define SBS_CHARGER_STATUS_CHARGE_INHIBITED BIT(0)
3329 #define SBS_CHARGER_STATUS_RES_COLD BIT(9)
3430 #define SBS_CHARGER_STATUS_RES_HOT BIT(10)
3531 #define SBS_CHARGER_STATUS_BATTERY_PRESENT BIT(14)