Merge tag 'pci-v4.15-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaa...
[sfrench/cifs-2.6.git] / drivers / pci / pcie / aspm.c
index d240ffab24c1326eaa7e44f054682ed881fafe26..9783e10da3a98d153fb463a4613dc94d2e04e1ca 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * File:       drivers/pci/pcie/aspm.c
  * Enabling PCIe link L0s/L1 state and Clock Power Management
@@ -1070,7 +1071,8 @@ void pci_disable_link_state(struct pci_dev *pdev, int state)
 }
 EXPORT_SYMBOL(pci_disable_link_state);
 
-static int pcie_aspm_set_policy(const char *val, struct kernel_param *kp)
+static int pcie_aspm_set_policy(const char *val,
+                               const struct kernel_param *kp)
 {
        int i;
        struct pcie_link_state *link;
@@ -1097,7 +1099,7 @@ static int pcie_aspm_set_policy(const char *val, struct kernel_param *kp)
        return 0;
 }
 
-static int pcie_aspm_get_policy(char *buffer, struct kernel_param *kp)
+static int pcie_aspm_get_policy(char *buffer, const struct kernel_param *kp)
 {
        int i, cnt = 0;
        for (i = 0; i < ARRAY_SIZE(policy_str); i++)