]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: tas2781: Use of_property_read_reg()
authorRob Herring (Arm) <robh@kernel.org>
Tue, 2 Jul 2024 21:54:01 +0000 (15:54 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:04 +0000 (16:29 +0200)
commitac7976b672770b0d7722e0885c3f6543a8a3cacf
tree529e4f452c91f036a35021735bd02a6b1fbd49b5
parentc0f6521806963ba3f5303f2e66aa7b5c2dba345a
ASoC: tas2781: Use of_property_read_reg()

[ Upstream commit 31a45f9190b5b4f5cd8cdec8471babd5215eee04 ]

Replace the open-coded parsing of "reg" with of_property_read_reg().
The #ifdef is also easily replaced with IS_ENABLED().

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20240702215402.839673-1-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Stable-dep-of: c2c0b67dca3c ("ASoC: tas2781-i2c: Drop weird GPIO code")
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/tas2781-i2c.c