]> git.baikalelectronics.ru Git - kernel.git/commit
ata: constify of_device_id structures
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 1 Mar 2017 19:33:28 +0000 (01:03 +0530)
committerTejun Heo <tj@kernel.org>
Mon, 6 Mar 2017 20:18:01 +0000 (15:18 -0500)
commit37a8140201e705b37f809b5b38244c54ef50bce9
treede07e003064165029e6ccc14c53072cdedcada69
parent8a17c7afe9fb246fbdf434a8c4a84cdc5bada8cb
ata: constify of_device_id structures

Declare of_device_id structures as const as they are either passed to
the macro MODULE_DEVICE_TABLE or stored in the of_match_table field of a
device_driver structure. This field is of type const, so of_device_id
structures having this property can be made const too.

Cross compiled the files drivers/ata/pata_macio.c and
drivers/ata/pata_mpc52xx.c for powerpc architecture.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/pata_macio.c
drivers/ata/pata_mpc52xx.c
drivers/ata/pata_of_platform.c
drivers/ata/sata_fsl.c
drivers/ata/sata_mv.c