]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regulator: ad5398: Add device tree support
authorIsaac Scott <isaac.scott@ideasonboard.com>
Tue, 28 Jan 2025 17:31:43 +0000 (17:31 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 3 Feb 2025 00:38:47 +0000 (00:38 +0000)
commit5a6a461079decea452fdcae955bccecf92e07e97
tree6bea8a2427c18e65bd16e39c329f2a4fb0866832
parent19d022d67d7353f0e6e9ba255435d3de93862ac4
regulator: ad5398: Add device tree support

Previously, the ad5398 driver used only platform_data, which is
deprecated in favour of device tree. This caused the AD5398 to fail to
probe as it could not load its init_data. If the AD5398 has a device
tree node, pull the init_data from there using
of_get_regulator_init_data.

Signed-off-by: Isaac Scott <isaac.scott@ideasonboard.com>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Link: https://patch.msgid.link/20250128173143.959600-4-isaac.scott@ideasonboard.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/ad5398.c