diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-23 19:09:58 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-23 19:12:05 +0300 |
commit | 5b8d5ad2308d2d5f77c8b9aa47d386a192dbb3c7 (patch) | |
tree | 9e0b74eceeeec4cace35c1725f22315c20983744 /drivers/spi | |
parent | 5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff) | |
download | linux-5b8d5ad2308d2d5f77c8b9aa47d386a192dbb3c7.tar.xz |
spi: pl022: constify amba_id
amba_id are not supposed to change at runtime. All functions
working with const amba_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-pl022.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 2f76e022cc59..4797c57f4263 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -2429,7 +2429,7 @@ static struct vendor_data vendor_lsi = { .internal_cs_ctrl = true, }; -static struct amba_id pl022_ids[] = { +static const struct amba_id pl022_ids[] = { { /* * ARM PL022 variant, this has a 16bit wide |