mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
qla2x00t*: Declare PCI bus mode speed name arrays const
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8416 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -559,7 +559,7 @@ static char *
|
||||
qla2x00_pci_info_str(struct scsi_qla_host *vha, char *str, size_t str_len)
|
||||
{
|
||||
struct qla_hw_data *ha = vha->hw;
|
||||
static const char *pci_bus_modes[] = {
|
||||
static const char *const pci_bus_modes[] = {
|
||||
"33", "66", "100", "133",
|
||||
};
|
||||
uint16_t pci_bus;
|
||||
@@ -579,7 +579,9 @@ qla2x00_pci_info_str(struct scsi_qla_host *vha, char *str, size_t str_len)
|
||||
static char *
|
||||
qla24xx_pci_info_str(struct scsi_qla_host *vha, char *str, size_t str_len)
|
||||
{
|
||||
static const char *pci_bus_modes[] = { "33", "66", "100", "133", };
|
||||
static const char *const pci_bus_modes[] = {
|
||||
"33", "66", "100", "133",
|
||||
};
|
||||
struct qla_hw_data *ha = vha->hw;
|
||||
uint32_t pci_bus;
|
||||
|
||||
|
||||
@@ -503,7 +503,7 @@ static char *
|
||||
qla2x00_pci_info_str(struct scsi_qla_host *vha, char *str, int str_len)
|
||||
{
|
||||
struct qla_hw_data *ha = vha->hw;
|
||||
static char *pci_bus_modes[] = {
|
||||
static const char *const pci_bus_modes[] = {
|
||||
"33", "66", "100", "133",
|
||||
};
|
||||
uint16_t pci_bus;
|
||||
@@ -526,7 +526,9 @@ qla2x00_pci_info_str(struct scsi_qla_host *vha, char *str, int str_len)
|
||||
static char *
|
||||
qla24xx_pci_info_str(struct scsi_qla_host *vha, char *str, int str_len)
|
||||
{
|
||||
static const char *pci_bus_modes[] = { "33", "66", "100", "133", };
|
||||
static const char *const pci_bus_modes[] = {
|
||||
"33", "66", "100", "133",
|
||||
};
|
||||
struct qla_hw_data *ha = vha->hw;
|
||||
uint32_t pci_bus;
|
||||
int pcie_reg;
|
||||
|
||||
Reference in New Issue
Block a user