diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2016-10-07 10:59:51 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-10-28 17:36:35 +0100 |
commit | b058b176dd26546bcef8f8b774f1542b2907af5f (patch) | |
tree | bb3b76c2bc8f7572a707985d3c3eeebad9afe842 /sound/soc/codecs/rl6347a.c | |
parent | 14970f204b1993af7459d5bd34aaff38dfee6670 (diff) | |
download | linux-b058b176dd26546bcef8f8b774f1542b2907af5f.tar.bz2 |
ASoC: rl6347a: Use dev_err for I2C communication error prints
It's difficult to guess from bunch of "ret=-121" errors what driver and
device actually caused them. Since struct i2c_client has the dev pointer
use that for dev_err() with meaningful error message.
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rl6347a.c')
-rw-r--r-- | sound/soc/codecs/rl6347a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rl6347a.c b/sound/soc/codecs/rl6347a.c index a4b910efbd45..8f571cf8edd4 100644 --- a/sound/soc/codecs/rl6347a.c +++ b/sound/soc/codecs/rl6347a.c @@ -51,7 +51,7 @@ int rl6347a_hw_write(void *context, unsigned int reg, unsigned int value) if (ret == 4) return 0; else - pr_err("ret=%d\n", ret); + dev_err(&client->dev, "I2C error %d\n", ret); if (ret < 0) return ret; else |