]> www.infradead.org Git - users/dwmw2/linux.git/commit
ASoC: da7218: Use i2c_get_match_data()
authorRob Herring <robh@kernel.org>
Fri, 6 Oct 2023 20:09:12 +0000 (15:09 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 9 Oct 2023 12:13:57 +0000 (13:13 +0100)
commitfe26425518862020449cb2c9709e62cc76a56de2
treef1edfe171b8db8263f8383ab2e78ee23c60816f3
parent56c075b2d31c626370481a62d334a0575f751522
ASoC: da7218: Use i2c_get_match_data()

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

Avoid using 0 for enum da7218_dev_id so that no match data can be
distinguished.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231006-dt-asoc-header-cleanups-v3-3-13a4f0f7fee6@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da7218.c
sound/soc/codecs/da7218.h