From: Denis Orlov <denorl2009@gmail.com>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>,
Denis Orlov <denorl2009@gmail.com>
Subject: [PATCH 2/2] net: macb: remove const from dev pointer in macb_device
Date: Mon, 5 Jun 2023 00:45:02 +0300 [thread overview]
Message-ID: <20230604215002.20240-3-denorl2009@gmail.com> (raw)
In-Reply-To: <20230604215002.20240-1-denorl2009@gmail.com>
Otherwise, it leads to a bunch of warnings on passing those pointers to
dma_*() functions. As every other driver seem to be having non-const dev
pointers in their private structs, do the same here.
Signed-off-by: Denis Orlov <denorl2009@gmail.com>
---
drivers/net/macb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index 4b89c59580..128ada7268 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -75,7 +75,7 @@ struct macb_device {
int phy_addr;
struct clk *pclk, *hclk, *txclk, *rxclk;
- const struct device *dev;
+ struct device *dev;
struct eth_device netdev;
phy_interface_t interface;
--
2.41.0
next prev parent reply other threads:[~2023-06-04 21:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-04 21:45 [PATCH v2 0/2] dma: rework streaming DMA interface Denis Orlov
2023-06-04 21:45 ` [PATCH 1/2] dma: rework dma_sync_single_for_*() interface Denis Orlov
2023-06-04 21:45 ` Denis Orlov [this message]
2023-06-06 7:40 ` [PATCH v2 0/2] dma: rework streaming DMA interface Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230604215002.20240-3-denorl2009@gmail.com \
--to=denorl2009@gmail.com \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox