Commit 761a86b1 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Mark Brown

spi: tle62x0: dump small buffers using %*ph

We have nice specifier in kernel for that.

It changes separator from ',' (comma) to space, though it's not a big deal
since it's just a debug message.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent ed893559
...@@ -52,8 +52,7 @@ static inline int tle62x0_write(struct tle62x0_state *st) ...@@ -52,8 +52,7 @@ static inline int tle62x0_write(struct tle62x0_state *st)
buff[1] = gpio_state; buff[1] = gpio_state;
} }
dev_dbg(&st->us->dev, "buff %02x,%02x,%02x\n", dev_dbg(&st->us->dev, "buff %3ph\n", buff);
buff[0], buff[1], buff[2]);
return spi_write(st->us, buff, (st->nr_gpio == 16) ? 3 : 2); return spi_write(st->us, buff, (st->nr_gpio == 16) ? 3 : 2);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment