Commit 6866a64a authored by Julia Lawall's avatar Julia Lawall Committed by Kalle Valo

brcmfmac: constify brcmf_bus_ops structures

The brcmf_bus_ops structures are never modified, so declare them as const.

Done with the help of Coccinelle.
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Acked-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 3a318426
...@@ -137,7 +137,7 @@ struct brcmf_bus { ...@@ -137,7 +137,7 @@ struct brcmf_bus {
bool always_use_fws_queue; bool always_use_fws_queue;
bool wowl_supported; bool wowl_supported;
struct brcmf_bus_ops *ops; const struct brcmf_bus_ops *ops;
struct brcmf_bus_msgbuf *msgbuf; struct brcmf_bus_msgbuf *msgbuf;
}; };
......
...@@ -1413,7 +1413,7 @@ static int brcmf_pcie_get_memdump(struct device *dev, void *data, size_t len) ...@@ -1413,7 +1413,7 @@ static int brcmf_pcie_get_memdump(struct device *dev, void *data, size_t len)
} }
static struct brcmf_bus_ops brcmf_pcie_bus_ops = { static const struct brcmf_bus_ops brcmf_pcie_bus_ops = {
.txdata = brcmf_pcie_tx, .txdata = brcmf_pcie_tx,
.stop = brcmf_pcie_down, .stop = brcmf_pcie_down,
.txctl = brcmf_pcie_tx_ctlpkt, .txctl = brcmf_pcie_tx_ctlpkt,
......
...@@ -4025,7 +4025,7 @@ brcmf_sdio_watchdog(unsigned long data) ...@@ -4025,7 +4025,7 @@ brcmf_sdio_watchdog(unsigned long data)
} }
} }
static struct brcmf_bus_ops brcmf_sdio_bus_ops = { static const struct brcmf_bus_ops brcmf_sdio_bus_ops = {
.stop = brcmf_sdio_bus_stop, .stop = brcmf_sdio_bus_stop,
.preinit = brcmf_sdio_bus_preinit, .preinit = brcmf_sdio_bus_preinit,
.txdata = brcmf_sdio_bus_txdata, .txdata = brcmf_sdio_bus_txdata,
......
...@@ -1163,7 +1163,7 @@ static void brcmf_usb_wowl_config(struct device *dev, bool enabled) ...@@ -1163,7 +1163,7 @@ static void brcmf_usb_wowl_config(struct device *dev, bool enabled)
device_set_wakeup_enable(devinfo->dev, false); device_set_wakeup_enable(devinfo->dev, false);
} }
static struct brcmf_bus_ops brcmf_usb_bus_ops = { static const struct brcmf_bus_ops brcmf_usb_bus_ops = {
.txdata = brcmf_usb_tx, .txdata = brcmf_usb_tx,
.stop = brcmf_usb_down, .stop = brcmf_usb_down,
.txctl = brcmf_usb_tx_ctlpkt, .txctl = brcmf_usb_tx_ctlpkt,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment