Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

LABBE Corentin and committed by
Tejun Heo
3a53b3bc 2aa8f5d6

+3 -3
+3 -3
drivers/ata/pata_it821x.c
··· 604 604 { 605 605 unsigned char id[41]; 606 606 int mode = 0; 607 - char *mtype = ""; 607 + const char *mtype = ""; 608 608 char mbuf[8]; 609 - char *cbl = "(40 wire cable)"; 609 + const char *cbl = "(40 wire cable)"; 610 610 611 611 static const char *types[5] = { 612 612 "RAID0", "RAID1", "RAID 0+1", "JBOD", "DISK" ··· 903 903 }; 904 904 905 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 907 int rc; 908 908 909 909 rc = pcim_enable_device(pdev);