Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Arvind Yadav and committed by
Mark Brown
5b8d5ad2 5771a8c0

+1 -1
+1 -1
drivers/spi/spi-pl022.c
··· 2429 2429 .internal_cs_ctrl = true, 2430 2430 }; 2431 2431 2432 - static struct amba_id pl022_ids[] = { 2432 + static const struct amba_id pl022_ids[] = { 2433 2433 { 2434 2434 /* 2435 2435 * ARM PL022 variant, this has a 16bit wide