]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
spi: cs42l43: Refactor accessing the SDCA extension properties
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 19 Jun 2024 12:17:02 +0000 (13:17 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 20 Jun 2024 20:10:14 +0000 (21:10 +0100)
Refactor accessing the SDCA extension properties to make it easier to
access multiple properties to assist with future features. Return the
node itself and allow the caller to read the actual properties.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20240619121703.3411989-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cs42l43.c

index 0a4475ae931bcbc0fa34eede34ea47789c086ffb..7b6fc6158a3bd6373945fddd20d1caa2ec9f1172 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/array_size.h>
 #include <linux/bits.h>
 #include <linux/bitfield.h>
+#include <linux/cleanup.h>
 #include <linux/device.h>
 #include <linux/errno.h>
 #include <linux/gpio/machine.h>