]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ata: sata_rcar: make of_device_ids const.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Fri, 16 Jun 2017 12:02:21 +0000 (17:32 +0530)
committerTejun Heo <tj@kernel.org>
Mon, 19 Jun 2017 18:03:06 +0000 (14:03 -0400)
commita5893870f8145b782e42d5ff187ae1dee6f2b650
tree10e7fd78c5ff094f5532085929e039ed722af139
parent79af3ae6e293855321dcd1a43c73be316fdff1a9
ata: sata_rcar: 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.

File size before:
   text    data     bss     dec     hex filename
   3946    2296       0    6242    1862 drivers/ata/sata_rcar.o

File size after constify sata_rcar_match.
   text    data     bss     dec     hex filename
   5554     696       0    6250    186a drivers/ata/sata_rcar.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/sata_rcar.c