[PATCH v5 0/3] [PATCH v5 0/3] iio: adc: ingenic-adc: use guard()() to handle synchronisation and refactor lock-held helpers

Felipe Ribeiro de Souza felipers em ime.usp.br
Ter Maio 5 22:58:27 -03 2026


In drivers/iio/adc/ingenic-adc.c:
- Refactor ingenic_adc_read_chan_info_raw() and ingenic_adc_enable_unlocked()
- Replace mutex_lock() and mutex_unlock() calls with guard()()

Felipe Ribeiro de Souza (3):
  iio: adc: ingenic-adc: rename ingenic_adc_enable_unlocked() function
  iio: adc: ingenic-adc: refactor ingenic_adc_read_chan_info_raw()
  iio: adc: ingenic-adc: use guard()() and scoped_guard() to handle
    synchronisation

 drivers/iio/adc/ingenic-adc.c | 68 ++++++++++++++++++-----------------
 1 file changed, 35 insertions(+), 33 deletions(-)

-- 
2.43.0



Mais detalhes sobre a lista de discussão kernel