Commit c0792c9
committed
power: supply: ln8411: Fixes ln8411_get_status() behavior
Initializes the charging status to unknown in the event of an
early return and corrects logical error in the state comparison.
Change-Id: Ia0d00a40b652a4e8d9ce32e51071a89877991d10
Signed-off-by: Ricardo Rivera-Matos <[email protected]>1 parent bf65671 commit c0792c9
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| 296 | + | |
| 297 | + | |
296 | 298 | | |
297 | 299 | | |
298 | 300 | | |
299 | 301 | | |
300 | | - | |
| 302 | + | |
301 | 303 | | |
302 | | - | |
| 304 | + | |
303 | 305 | | |
304 | 306 | | |
305 | 307 | | |
306 | | - | |
307 | | - | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| |||
0 commit comments