regulator: da9121: Use i2c_get_match_data()
authorRob Herring <robh@kernel.org>
Tue, 17 Oct 2023 20:34:28 +0000 (15:34 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 17 Oct 2023 20:38:47 +0000 (21:38 +0100)
commit46537a8676d6555141c4b98ec1bf5f3eea971128
tree772c9ce4cd0b8d4e6c9be504760634b0c1520294
parenta8b4962fbd004d7d4fcbf01ce7dc27fcef406199
regulator: da9121: Use i2c_get_match_data()

Use preferred i2c_get_match_data() instead of of_match_device() to get
the driver match data. With this, adjust the includes to explicitly
include the correct headers.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231017203429.2699039-1-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/da9121-regulator.c