board/rammus/battery.c: Format with clang-format
BRANCH=none
TEST=none
@@ -63,7 +63,8 @@ static int battery_init(void)
{
int batt_status;
- return battery_status(&batt_status) ? 0 :
+ return battery_status(&batt_status) ?
+ 0 :
!!(batt_status & STATUS_INITIALIZED);
}
@@ -85,13 +86,13 @@ static int battery_check_disconnect(void)
uint8_t data[6];
/* Check if battery charging + discharging is disabled. */
- rv = sb_read_mfgacc(PARAM_OPERATION_STATUS,
- SB_ALT_MANUFACTURER_ACCESS, data, sizeof(data));
+ rv = sb_read_mfgacc(PARAM_OPERATION_STATUS, SB_ALT_MANUFACTURER_ACCESS,
+ data, sizeof(data));
if (rv)
return BATTERY_DISCONNECT_ERROR;
- if ((data[3] & (BATTERY_DISCHARGING_DISABLED |
- BATTERY_CHARGING_DISABLED)) ==
+ if ((data[3] &
+ (BATTERY_DISCHARGING_DISABLED | BATTERY_CHARGING_DISABLED)) ==
(BATTERY_DISCHARGING_DISABLED | BATTERY_CHARGING_DISABLED))
return BATTERY_DISCONNECTED;
