]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:38:04 +0000 (14:38 +0200)
commit8d278ad829c2885084b481753497dc22cfbe89a2
tree2ed43e33049698aaa16af79180a1e13b95863eed
parent8ed3d17847742ab07009738cb51eac9c342aed97
regulator: ad5398: Add device tree support

[ Upstream commit 5a6a461079decea452fdcae955bccecf92e07e97 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/ad5398.c