driver/temp_sensor/tmp411.c: Format with clang-format
BRANCH=none
TEST=none
@@ -181,14 +181,11 @@ static void tmp411_temp_sensor_poll(void)
if (get_temp(TMP411_REMOTE1, &temp_c) == EC_SUCCESS)
temp_val_remote1 = C_TO_K(temp_c);
-
}
DECLARE_HOOK(HOOK_SECOND, tmp411_temp_sensor_poll, HOOK_PRIO_TEMP_SENSOR);
#ifdef CONFIG_CMD_TEMP_SENSOR
-static void print_temps(
- const char *name,
- const int tmp411_temp_reg,
+static void print_temps(const char *name, const int tmp411_temp_reg,
const int tmp411_therm_limit_reg,
const int tmp411_high_limit_reg,
const int tmp411_low_limit_reg)
@@ -219,15 +216,11 @@ static int print_status(void)
{
int value;
- print_temps("Local", TMP411_LOCAL,
- TMP411_LOCAL_THERM_LIMIT,
- TMP411_LOCAL_HIGH_LIMIT_R,
- TMP411_LOCAL_LOW_LIMIT_R);
+ print_temps("Local", TMP411_LOCAL, TMP411_LOCAL_THERM_LIMIT,
+ TMP411_LOCAL_HIGH_LIMIT_R, TMP411_LOCAL_LOW_LIMIT_R);
- print_temps("Remote1", TMP411_REMOTE1,
- TMP411_REMOTE1_THERM_LIMIT,
- TMP411_REMOTE1_HIGH_LIMIT_R,
- TMP411_REMOTE1_LOW_LIMIT_R);
+ print_temps("Remote1", TMP411_REMOTE1, TMP411_REMOTE1_THERM_LIMIT,
+ TMP411_REMOTE1_HIGH_LIMIT_R, TMP411_REMOTE1_LOW_LIMIT_R);
ccprintf("\n");
@@ -285,8 +278,8 @@ static int command_tmp411(int argc, char **argv)
rv = raw_read8(offset, &data);
if (rv < 0)
return rv;
- ccprintf("Byte at offset 0x%02x is %pb\n",
- offset, BINARY_VALUE(data, 8));
+ ccprintf("Byte at offset 0x%02x is %pb\n", offset,
+ BINARY_VALUE(data, 8));
return rv;
}
@@ -309,7 +302,8 @@ static int command_tmp411(int argc, char **argv)
return rv;
}
-DECLARE_CONSOLE_COMMAND(tmp411, command_tmp411,
+DECLARE_CONSOLE_COMMAND(
+ tmp411, command_tmp411,
"[settemp|setbyte <offset> <value>] or [getbyte <offset>] or"
"[power <on|off>]. "
"Temps in Celsius.",
