From b6c148e7635062a617332462c70580623803981c Mon Sep 17 00:00:00 2001 From: TimJTi <56726697+TimJTi@users.noreply.github.com> Date: Thu, 1 Dec 2022 22:25:49 +0000 Subject: [PATCH] Style changes for sam_adc.c and sam_tsd.c --- arch/arm/src/sama5/sam_adc.c | 4 ++-- arch/arm/src/sama5/sam_tsd.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/sama5/sam_adc.c b/arch/arm/src/sama5/sam_adc.c index 846a71b9e7..283c4ba362 100644 --- a/arch/arm/src/sama5/sam_adc.c +++ b/arch/arm/src/sama5/sam_adc.c @@ -2213,7 +2213,7 @@ struct adc_dev_s *sam_adc_initialize(void) /* Initialize the public ADC device data structure */ #ifdef SAMA5_ADC_HAVE_CHANNELS - g_adcdev.ad_ops = &g_adcops; + g_adcdev.ad_ops = &g_adcops; priv->dev = &g_adcdev; #endif @@ -2222,7 +2222,7 @@ struct adc_dev_s *sam_adc_initialize(void) /* Initialize the private ADC device data structure */ nxmutex_init(&priv->lock); - priv->cb = NULL; + priv->cb = NULL; #ifdef CONFIG_SAMA5_ADC_DMA /* Allocate a DMA channel from DMAC1 */ diff --git a/arch/arm/src/sama5/sam_tsd.c b/arch/arm/src/sama5/sam_tsd.c index 959425cc47..4ad5690fdc 100644 --- a/arch/arm/src/sama5/sam_tsd.c +++ b/arch/arm/src/sama5/sam_tsd.c @@ -138,7 +138,7 @@ #endif #ifndef BOARD_TSSCTIM -# define BOARD_TSSCTIM 0 +# define BOARD_TSSCTIM 0 #endif #ifndef BOARD_TSD_PENDETSENS @@ -1382,7 +1382,7 @@ static void sam_tsd_tracking(struct sam_tsd_s *priv, uint32_t time) tracktim--; } } -#elif defined (ATSAMA5D3) +#elif defined(ATSAMA5D3) tracktim = 0; #else /* ATSAMA5D2*/ tracktim = MAX(time, 15);