summaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/hw-me.h
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2020-06-19 19:51:16 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-29 18:40:26 +0200
commit45a2c76283ace79cee5eb7e17a0ee81099700139 (patch)
tree65ded210f39ac8a394333f25bd0f2ab2153c30c3 /drivers/misc/mei/hw-me.h
parent0e3a52ba93ffce737c7a2418ce6592152787d148 (diff)
downloadlinux-stable-45a2c76283ace79cee5eb7e17a0ee81099700139.tar.gz
linux-stable-45a2c76283ace79cee5eb7e17a0ee81099700139.tar.bz2
linux-stable-45a2c76283ace79cee5eb7e17a0ee81099700139.zip
mei: me: constify the device parameter to the probe quirk
The quirk_probe there is no writing to pci device hence we can constify the passed pci_dev pointer. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Link: https://lore.kernel.org/r/20200619165121.2145330-2-tomas.winkler@intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/hw-me.h')
-rw-r--r--drivers/misc/mei/hw-me.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/hw-me.h b/drivers/misc/mei/hw-me.h
index 6a8973649c49..560c8ebb17be 100644
--- a/drivers/misc/mei/hw-me.h
+++ b/drivers/misc/mei/hw-me.h
@@ -25,7 +25,7 @@
*/
struct mei_cfg {
const struct mei_fw_status fw_status;
- bool (*quirk_probe)(struct pci_dev *pdev);
+ bool (*quirk_probe)(const struct pci_dev *pdev);
size_t dma_size[DMA_DSCR_NUM];
u32 fw_ver_supported:1;
u32 hw_trc_supported:1;