Skip to content

Commit dfd43e9

Browse files
committed
Drivers: ADC_gecko: More formatting issues
Took care of more formatting issues. Apparently clang-format does not take care of everything. Signed-off-by: Kim Mansfield <[email protected]>
1 parent e41a6d8 commit dfd43e9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

boards/arm/tmo_dev_edge/tmo_dev_edge.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@
405405
};
406406

407407
&gpiok {
408-
status = "okay";
408+
status = "okay";
409409
};
410410

411411
&wdog0 {

drivers/adc/adc_gecko.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ static void adc_gecko_irq_handler(const struct device *dev)
111111
struct adc_gecko_config *config = (struct adc_gecko_config *)dev->config;
112112
uint16_t result;
113113
uint8_t ainsel;
114-
115114
uint32_t flags = ADC_IntGet(ADC0); /* get all interrupt flags */
115+
116116
if (flags & ADC_IF_SINGLE) {
117117
ADC_IntClear(config->base, flags);
118118

@@ -252,6 +252,7 @@ static int adc_gecko_channel_setup(const struct device *dev,
252252
const struct adc_channel_cfg *channel_cfg)
253253
{
254254
struct adc_gecko_config *config = (struct adc_gecko_config *)dev->config;
255+
255256
if (channel_cfg->channel_id >= config->num_channels) {
256257
LOG_ERR("unsupported channel id '%d'", channel_cfg->channel_id);
257258
return -ENOTSUP;
@@ -328,6 +329,7 @@ static int adc_gecko_init(const struct device *dev)
328329
struct adc_gecko_config *config = (struct adc_gecko_config *)dev->config;
329330
ADC_Init_TypeDef init = ADC_INIT_DEFAULT;
330331
struct adc_gecko_data *data = dev->data;
332+
331333
data->dev = dev;
332334

333335
config->irq_configure();
@@ -366,7 +368,7 @@ static int adc_gecko_init(const struct device *dev)
366368
.channel_setup = adc_gecko_channel_setup, \
367369
.read = adc_gecko_read, \
368370
.ref_internal = DT_INST_PROP(inst, vref_mv), \
369-
IF_ENABLED(CONFIG_ADC_ASYNC, (.read_async = adc_gecko_read_async, ))}; \
371+
IF_ENABLED(CONFIG_ADC_ASYNC, (.read_async = adc_gecko_read_async,))}; \
370372
\
371373
static struct adc_gecko_config adc_gecko_config##inst = { \
372374
.num_channels = ADC_GECKO_CHANNEL_NUM, \

0 commit comments

Comments
 (0)