Commit dcbd0d13 authored by Ruibin Chang's avatar Ruibin Chang Committed by Benjamin Cabé
Browse files

drivers/sensor/ite/tach_ite_it8xxx2: run clang format

Run clang format.

Signed-off-by: default avatarRuibin Chang <Ruibin.Chang@ite.com.tw>
parent cbe1932a
Loading
Loading
Loading
Loading
+5 −12
Changes for drivers/sensor/ite/ite_tach_it8xxx2/tach_ite_it8xxx2.c: 5 added lines, 12 removed lines.
Original line number Diff line number Diff line
@@ -110,8 +110,7 @@ static bool tach_ch_is_valid(const struct device *dev, int tach_ch)
	return valid;
}

static int tach_it8xxx2_sample_fetch(const struct device *dev,
				     enum sensor_channel chan)
static int tach_it8xxx2_sample_fetch(const struct device *dev, enum sensor_channel chan)
{
	const struct tach_it8xxx2_config *const config = dev->config;
	volatile uint8_t *reg_fxtlrr = (uint8_t *)config->reg_fxtlrr;
@@ -143,8 +142,7 @@ static int tach_it8xxx2_sample_fetch(const struct device *dev,
	return 0;
}

static int tach_it8xxx2_channel_get(const struct device *dev,
				    enum sensor_channel chan,
static int tach_it8xxx2_channel_get(const struct device *dev, enum sensor_channel chan,
				    struct sensor_value *val)
{
	const struct tach_it8xxx2_config *const config = dev->config;
@@ -244,13 +242,8 @@ static DEVICE_API(sensor, tach_it8xxx2_driver_api) = {
                                                                                                   \
	static struct tach_it8xxx2_data tach_it8xxx2_data_##inst;                                  \
                                                                                                   \
	SENSOR_DEVICE_DT_INST_DEFINE(inst,				       \
			      tach_it8xxx2_init,			       \
			      NULL,					       \
			      &tach_it8xxx2_data_##inst,		       \
			      &tach_it8xxx2_cfg_##inst,			       \
			      POST_KERNEL,				       \
			      CONFIG_SENSOR_INIT_PRIORITY,		       \
			      &tach_it8xxx2_driver_api);
	SENSOR_DEVICE_DT_INST_DEFINE(inst, tach_it8xxx2_init, NULL, &tach_it8xxx2_data_##inst,     \
				     &tach_it8xxx2_cfg_##inst, POST_KERNEL,                        \
				     CONFIG_SENSOR_INIT_PRIORITY, &tach_it8xxx2_driver_api);

DT_INST_FOREACH_STATUS_OKAY(TACH_IT8XXX2_INIT)