diff options
author | Mark Brown <broonie@kernel.org> | 2023-10-16 17:41:47 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-10-16 17:41:47 +0300 |
commit | 93a83b76b88f588b614cb14d8419b4a1de087b61 (patch) | |
tree | 7e4c4a2d0bbf32419802400a02c1610270df36c9 | |
parent | 2e1a4596dcecda57b32a3fe94059ae72f5f0cac1 (diff) | |
parent | 078d3a4b120f82d57778466de62929bb8824b664 (diff) | |
download | linux-93a83b76b88f588b614cb14d8419b4a1de087b61.tar.xz |
ASoC: codecs: rt715*: update misleading error log
Merge series from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:
Improve two errors logs which report bad information.
-rw-r--r-- | sound/soc/codecs/rt715-sdca.c | 4 | ||||
-rw-r--r-- | sound/soc/codecs/rt715.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/rt715-sdca.c b/sound/soc/codecs/rt715-sdca.c index 9fa96fd83d4a..4533eedd7e18 100644 --- a/sound/soc/codecs/rt715-sdca.c +++ b/sound/soc/codecs/rt715-sdca.c @@ -41,8 +41,8 @@ static int rt715_sdca_index_write(struct rt715_sdca_priv *rt715, ret = regmap_write(regmap, addr, value); if (ret < 0) dev_err(&rt715->slave->dev, - "Failed to set private value: %08x <= %04x %d\n", ret, addr, - value); + "Failed to set private value: %08x <= %04x %d\n", + addr, value, ret); return ret; } diff --git a/sound/soc/codecs/rt715.c b/sound/soc/codecs/rt715.c index ed0af0213d60..9f732a5abd53 100644 --- a/sound/soc/codecs/rt715.c +++ b/sound/soc/codecs/rt715.c @@ -40,8 +40,8 @@ static int rt715_index_write(struct regmap *regmap, unsigned int reg, ret = regmap_write(regmap, addr, value); if (ret < 0) { - pr_err("Failed to set private value: %08x <= %04x %d\n", ret, - addr, value); + pr_err("Failed to set private value: %08x <= %04x %d\n", + addr, value, ret); } return ret; |