[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220502090225.26478-5-marcan@marcan.st>
Date: Mon, 2 May 2022 18:02:22 +0900
From: Hector Martin <marcan@...can.st>
To: unlisted-recipients:; (no To-header on input)
Cc: Hector Martin <marcan@...can.st>,
Anup Patel <anup.patel@...adcom.com>,
Vinod Koul <vkoul@...nel.org>, Sven Peter <sven@...npeter.dev>,
Alyssa Rosenzweig <alyssa@...enzweig.io>,
Mun Yew Tham <mun.yew.tham@...el.com>,
Chen-Yu Tsai <wens@...e.org>,
Jernej Skrabec <jernej.skrabec@...il.com>,
Samuel Holland <samuel@...lland.org>,
Michal Simek <michal.simek@...inx.com>,
Arnd Bergmann <arnd@...db.de>, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, dmaengine@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-sunxi@...ts.linux.dev
Subject: [PATCH 4/7] mailbox: altera: Remove unused altera_mbox_peek_data
This op was ambiguously specified, and the way it was interpreted for
this implementation is not useful. It has no users, so remove it.
Signed-off-by: Hector Martin <marcan@...can.st>
---
drivers/mailbox/mailbox-altera.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/drivers/mailbox/mailbox-altera.c b/drivers/mailbox/mailbox-altera.c
index afb320e9d69c..30de424df371 100644
--- a/drivers/mailbox/mailbox-altera.c
+++ b/drivers/mailbox/mailbox-altera.c
@@ -238,13 +238,6 @@ static bool altera_mbox_last_tx_done(struct mbox_chan *chan)
return altera_mbox_full(mbox) ? false : true;
}
-static bool altera_mbox_peek_data(struct mbox_chan *chan)
-{
- struct altera_mbox *mbox = mbox_chan_to_altera_mbox(chan);
-
- return altera_mbox_pending(mbox) ? true : false;
-}
-
static int altera_mbox_startup(struct mbox_chan *chan)
{
struct altera_mbox *mbox = mbox_chan_to_altera_mbox(chan);
@@ -279,7 +272,6 @@ static const struct mbox_chan_ops altera_mbox_ops = {
.startup = altera_mbox_startup,
.shutdown = altera_mbox_shutdown,
.last_tx_done = altera_mbox_last_tx_done,
- .peek_data = altera_mbox_peek_data,
};
static int altera_mbox_probe(struct platform_device *pdev)
--
2.35.1
Powered by blists - more mailing lists