]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: PAC1934: Use devm_mutex_init()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 7 Sep 2025 10:04:48 +0000 (12:04 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 10 Sep 2025 18:47:05 +0000 (19:47 +0100)
commitf29b08cd0b8613c2ca23f691073deb37d4dc055c
treecc65980c9d15d09e2f62ba33908dfa7f34666b7c
parent106511d280c75908b5252e465ffb57cc66b05a2d
iio: adc: PAC1934: Use devm_mutex_init()

Use devm_mutex_init() instead of hand-writing it.

This saves some LoC, improves readability and saves some space in the
generated .o file.

Before:
======
   text    data     bss     dec     hex filename
  50985   23992     192   75169   125a1 drivers/iio/adc/pac1934.o

After:
=====
   text    data     bss     dec     hex filename
  50654   23920     192   74766   1240e drivers/iio/adc/pac1934.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/f92033415f43aa02fe862cb952e62b6ded949056.1757239464.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/pac1934.c