diff options
author | 2018-08-03 11:50:39 +0200 | |
---|---|---|
committer | 2018-08-03 10:51:25 +0100 | |
commit | 401c0d7712eb3189023efc9c0708a2ac984ed62e (patch) | |
tree | 9d8ef290bde4a8ebb83ec84a13006637f23b37ce /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mtd: m25p80: Call spi_mem_get_name() to let controller set a custom name (diff) | |
download | linux-dev-401c0d7712eb3189023efc9c0708a2ac984ed62e.tar.xz linux-dev-401c0d7712eb3189023efc9c0708a2ac984ed62e.zip |
spi: spi-mem: Constify spi_mem->name
There is no reason to make spi_mem->name modifiable. Moreover,
spi_mem_ops->get_name() returns a const char *, which generates a gcc
warning when assigning the value returned by spi_mem_ops->get_name()
to spi_mem->name.
Fixes: 5d27a9c8ea9e ("spi: spi-mem: Extend the SPI mem interface to set a custom memory name")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions