From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8E59C433F5 for ; Mon, 2 May 2022 09:03:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384019AbiEBJGb (ORCPT ); Mon, 2 May 2022 05:06:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384061AbiEBJGU (ORCPT ); Mon, 2 May 2022 05:06:20 -0400 Received: from mail.marcansoft.com (marcansoft.com [IPv6:2a01:298:fe:f::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2CB058E70; Mon, 2 May 2022 02:02:52 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hector@marcansoft.com) by mail.marcansoft.com (Postfix) with ESMTPSA id 4E52742118; Mon, 2 May 2022 09:02:47 +0000 (UTC) From: Hector Martin Cc: Hector Martin , Anup Patel , Vinod Koul , Sven Peter , Alyssa Rosenzweig , Mun Yew Tham , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek , Arnd Bergmann , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 4/7] mailbox: altera: Remove unused altera_mbox_peek_data Date: Mon, 2 May 2022 18:02:22 +0900 Message-Id: <20220502090225.26478-5-marcan@marcan.st> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220502090225.26478-1-marcan@marcan.st> References: <20220502090225.26478-1-marcan@marcan.st> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org 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 --- 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