Dan Murphy edd6d53932
ASoC: tas2770: Fix snd_soc_update_bits error handling
According the documentation for snd_soc_update_bits the API
will return a 1 if the update was successful with a value change,
a 0 if the update was successful with no value change or a negative
if the command just failed.

So the value of return in the driver needs to be checked for being less
then 0 or the caller may indicate failure when the value actually
changed.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20191007171157.17813-1-dmurphy@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-10-07 19:09:04 +01:00
..
2019-10-01 12:16:01 +01:00
2019-06-26 12:27:50 +01:00
2018-04-26 12:44:15 +01:00
2019-06-12 13:52:26 +01:00
2019-06-12 13:52:26 +01:00
2019-07-26 13:10:09 +01:00
2019-06-26 12:39:34 +01:00
2019-06-26 12:39:34 +01:00
2019-06-26 12:39:34 +01:00
2018-05-18 11:20:11 +01:00
2019-06-26 12:39:34 +01:00
2019-06-26 12:39:34 +01:00
2019-01-07 16:53:10 +00:00
2018-06-01 12:05:30 +01:00
2019-10-02 12:50:40 +01:00