]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: xiaomi-wmi: Use devm_mutex_init()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 7 Sep 2025 10:09:09 +0000 (12:09 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 8 Sep 2025 10:10:29 +0000 (13:10 +0300)
commitb5a5a16e37c004052e9181de5cff0638d44a4b9b
tree08bbcb1b6e60c6ee7875312e0b26d840a7cb7c85
parentf490253809c8dab4af62e787f5a3ac3d22aa869c
platform/x86: xiaomi-wmi: 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
   3520    1112      64    4696    1258 drivers/platform/x86/xiaomi-wmi.o

After:
=====
   text    data     bss     dec     hex filename
   3069    1040      64    4173    104d drivers/platform/x86/xiaomi-wmi.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/bb5d7a57e11eb580f610276a351a01a993341fb8.1757239732.git.christophe.jaillet@wanadoo.fr
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/xiaomi-wmi.c