jerpelea opened a new pull request, #21299:
URL: https://github.com/apache/nuttx/pull/21299

   ## Summary
   
   In adc_sampletime_cfg() for STM32 M0, the generic upper-half ADC device 
pointer 'dev' (struct adc_dev_s *) was passed directly to adc_sampletime_set() 
and adc_sampletime_write().
   
   Both functions expect the driver lower-half pointer and cast it to 'struct 
stm32_dev_s *'. Since the upper-half and lower-half objects are distinct, this 
resulted in sample-time configuration values and peripheral register base 
addresses being written to and read from incorrect offsets.
   
   This commit updates adc_sampletime_cfg() to pass 'dev->ad_priv' matching the 
implementation in sibling drivers (stm32_adc_m3m4_v1v2.c and stm32_adc.c).
   
   Fixes: #19554
   
   ## Impact
   
   RELEASE
   
   ## Testing
   
   CI


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to