zephyr/shim/include/temp_sensor/temp_sensor.h: Format with clang-format
BRANCH=none
TEST=none
#define HAS_POWER_GOOD_PIN(node_id) DT_NODE_HAS_PROP(node_id, power_good_pin) ||
#define ANY_INST_HAS_POWER_GOOD_PIN \
- (DT_FOREACH_STATUS_OKAY(cros_ec_temp_sensor, HAS_POWER_GOOD_PIN) \
- 0)
+ (DT_FOREACH_STATUS_OKAY(cros_ec_temp_sensor, HAS_POWER_GOOD_PIN) 0)
enum temp_sensor_id {
#if DT_NODE_EXISTS(DT_PATH(named_temp_sensors))
- DT_FOREACH_CHILD(DT_PATH(named_temp_sensors),
- TEMP_SENSOR_ID_WITH_COMMA)
+ DT_FOREACH_CHILD(DT_PATH(named_temp_sensors), TEMP_SENSOR_ID_WITH_COMMA)
#endif /* named_temp_sensors */
TEMP_SENSOR_COUNT
};
@@ -30,8 +28,8 @@ enum temp_sensor_id {
#undef TEMP_SENSOR_ID_WITH_COMMA
/* PCT2075 access array */
-#define ZSHIM_PCT2075_SENSOR_ID(node_id) DT_STRING_UPPER_TOKEN(node_id, \
- pct2075_name)
+#define ZSHIM_PCT2075_SENSOR_ID(node_id) \
+ DT_STRING_UPPER_TOKEN(node_id, pct2075_name)
#define PCT2075_SENSOR_ID_WITH_COMMA(node_id) ZSHIM_PCT2075_SENSOR_ID(node_id),
enum pct2075_sensor {
@@ -45,8 +43,8 @@ enum pct2075_sensor {
#undef PCT2075_SENSOR_ID_WITH_COMMA
/* TMP112 access array */
-#define ZSHIM_TMP112_SENSOR_ID(node_id) DT_STRING_UPPER_TOKEN(node_id, \
- tmp112_name)
+#define ZSHIM_TMP112_SENSOR_ID(node_id) \
+ DT_STRING_UPPER_TOKEN(node_id, tmp112_name)
#define TMP112_SENSOR_ID_WITH_COMMA(node_id) ZSHIM_TMP112_SENSOR_ID(node_id),
enum tmp112_sensor {
