]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: spi-nor: cqspi: make of_device_ids const
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Fri, 16 Jun 2017 09:35:17 +0000 (15:05 +0530)
committerCyrille Pitchen <cyrille.pitchen@wedev4u.fr>
Tue, 20 Jun 2017 21:54:18 +0000 (23:54 +0200)
commitf993c123b461ff47c10edfee65465fe651d0521f
tree0001d83b141094a64ca395dc2b0f14041761626a
parent0cbef932bd82857823c0e52b08218b0c9920a475
mtd: spi-nor: cqspi: make of_device_ids const

of_device_ids are not supposed to change at runtime. All functions
working with of_device_ids provided by <linux/of.h> work with const
of_device_ids. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>
drivers/mtd/spi-nor/cadence-quadspi.c