device/pciexp: Make aspm_type_str pointer const
Fix checkpatch warning by changing aspm_type_str array to use 'static const char * const' instead of 'static const char *'. Change-Id: Id1082447e309b840c965326a74c4ab00f3a1536c Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90914 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
parent
a09f541e03
commit
0d18307640
1 changed files with 1 additions and 1 deletions
|
|
@ -569,7 +569,7 @@ static int pciexp_aspm_latency(struct device *root, unsigned int root_cap,
|
|||
static void pciexp_enable_aspm(struct device *root, unsigned int root_cap,
|
||||
struct device *endp, unsigned int endp_cap)
|
||||
{
|
||||
const char *aspm_type_str[] = { "None", "L0s", "L1", "L0s and L1" };
|
||||
static const char * const aspm_type_str[] = { "None", "L0s", "L1", "L0s and L1" };
|
||||
enum aspm_type apmc = PCIE_ASPM_NONE;
|
||||
int exit_latency, ok_latency;
|
||||
u16 lnkctl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue