libata: make ata_port_type const
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 30 Sep 2017 16:40:40 +0000 (22:10 +0530)
committerTejun Heo <tj@kernel.org>
Mon, 2 Oct 2017 16:57:55 +0000 (09:57 -0700)
commit8df82c13a3756f831b0d748226ce932515728e04
treef543ab6512a622e3d682c0ed9f9072383159aee3
parente94f7914fa8731cc64260c0a3a0b7b9957523730
libata: make ata_port_type const

Make this const as it is only stored in the const field of a device
structure. Make the declaration in header const too.

Structure found using Coccinelle and changes done by hand.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-core.c
drivers/ata/libata.h