]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm2000: Remove wm2000_read helper function
authorLucas Tanure <tanureal@opensource.cirrus.com>
Fri, 19 Oct 2018 16:44:22 +0000 (17:44 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 21 Oct 2018 11:04:38 +0000 (12:04 +0100)
commit8ba715afb3b83f73b9d7d2eb56c605422083d048
treead6bb363220f7ebfeeadd0edea7a2d48be72a3e0
parentb23f746a02b42d346e431114e7cb9f131cf555d4
ASoC: wm2000: Remove wm2000_read helper function

The return type "unsigned int" was used by the wm2000_read()
function despite of the aspect that it will eventually return
a negative error code.
The resulting function doesn't add much to the code, so replace
wm2000_read with regmap_read.

Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm2000.c