From 23f4f04448ababfa054aca3de5b2867c540fb6ef Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 27 May 2016 07:50:06 -0600 Subject: [PATCH] Costmetic update to some comments --- include/nuttx/analog/adc.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/nuttx/analog/adc.h b/include/nuttx/analog/adc.h index 235ade4192..f08687a5a4 100644 --- a/include/nuttx/analog/adc.h +++ b/include/nuttx/analog/adc.h @@ -159,8 +159,8 @@ struct adc_ops_s }; /* This is the device structure used by the driver. The caller of - * adc_register() must allocate and initialize this structure. The - * calling logic need only set all fields to zero except: + * adc_register() must allocate and initialize this structure. The calling + * logic need only set all fields to zero except: * * The elements of 'ad_ops', and 'ad_priv' * @@ -170,12 +170,17 @@ struct adc_ops_s struct adc_dev_s { #ifdef CONFIG_ADC + /* Fields managed by common upper half ADC logic */ + uint8_t ad_ocount; /* The number of times the device has been opened */ uint8_t ad_nrxwaiters; /* Number of threads waiting to enqueue a message */ sem_t ad_closesem; /* Locks out new opens while close is in progress */ sem_t ad_recvsem; /* Used to wakeup user waiting for space in ad_recv.buffer */ struct adc_fifo_s ad_recv; /* Describes receive FIFO */ #endif + + /* Fields provided by lower half ADC logic */ + FAR const struct adc_ops_s *ad_ops; /* Arch-specific operations */ FAR void *ad_priv; /* Used by the arch-specific logic */ };