]> Gentwo Git Trees - linux/.git/commit
iio: adc: rzg2l_adc: Simplify the locking scheme in rzg2l_adc_read_raw()
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Fri, 6 Dec 2024 11:13:29 +0000 (13:13 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 11 Dec 2024 19:18:37 +0000 (19:18 +0000)
commit5d7fb2d589c56877bf220f73debd134c09e8209f
tree6b0269f2fe66309b3f90d9249187462da28eedaa
parentb7549624af04eb52cb28df57bee2bcc88be1adc0
iio: adc: rzg2l_adc: Simplify the locking scheme in rzg2l_adc_read_raw()

Simplify the locking scheme in rzg2l_adc_read_raw() by using
guard(mutex)().

Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://patch.msgid.link/20241206111337.726244-8-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/rzg2l_adc.c