aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLABBE Corentin <clabbe.montjoie@gmail.com>2015-10-14 15:18:31 -0400
committerTejun Heo <tj@kernel.org>2015-10-15 10:58:53 -0400
commit3a53b3bcc7af2f7ddfb682cb8efb26e40fe50fb1 (patch)
treedc2770c20b64460eb24dcf5d40389a15043a770e
parent2aa8f5d63d9183ab185364d4ce849566ede0f301 (diff)
pata_it821x: use "const char *" for string literals
Some string literals are pointed to by "char *". This patch fixes that. tj: Updated patch title and description. Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r--drivers/ata/pata_it821x.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c
index a5088ecb349f..7a21edf89e72 100644
--- a/drivers/ata/pata_it821x.c
+++ b/drivers/ata/pata_it821x.c
@@ -604,9 +604,9 @@ static void it821x_display_disk(int n, u8 *buf)
604{ 604{
605 unsigned char id[41]; 605 unsigned char id[41];
606 int mode = 0; 606 int mode = 0;
607 char *mtype = ""; 607 const char *mtype = "";
608 char mbuf[8]; 608 char mbuf[8];
609 char *cbl = "(40 wire cable)"; 609 const char *cbl = "(40 wire cable)";
610 610
611 static const char *types[5] = { 611 static const char *types[5] = {
612 "RAID0", "RAID1", "RAID 0+1", "JBOD", "DISK" 612 "RAID0", "RAID1", "RAID 0+1", "JBOD", "DISK"
@@ -903,7 +903,7 @@ static int it821x_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
903 }; 903 };
904 904
905 const struct ata_port_info *ppi[] = { NULL, NULL }; 905 const struct ata_port_info *ppi[] = { NULL, NULL };
906 static char *mode[2] = { "pass through", "smart" }; 906 static const char *mode[2] = { "pass through", "smart" };
907 int rc; 907 int rc;
908 908
909 rc = pcim_enable_device(pdev); 909 rc = pcim_enable_device(pdev);