From patchwork Thu Dec 15 06:58:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13073931 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C843EC4332F for ; Thu, 15 Dec 2022 07:02:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Y3q8QmLRXtjb2v8+CvoDQFb2t60QgU4Obw+JIrxsZY8=; b=hf0ZjZbRcwjiYM qi/CDYLz79AUfzI0NFDBhC0yshD0iSnyvznFPQPP8B2jDBC0qIOyQ6h+s6ItXurmqOksdDceIHFlc Lyiapt4+kkkrcGMGsua+aj1Zgp+UsxHCjq0ULUownoF8l177z0E6LSjxSS3Vtc/vvV6KzhHV5Z0xH wv5ipqd/cGDdHsskfS31fARxQUarLOVFJ5aj7e0Qbpfbo8F/LIyKcRk8BrQA9Cr01TJqRwmvF578L e/a4Dy0zgSxq67mgnKWm0UvXWeS1B/JE4aNThFUDFTG5DEdVGSvKB283M5/3Eh8xj1ZxDpNw+YVJM 1fwRTCjDQ2YgF0WdaPBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p5iD9-006zsc-By; Thu, 15 Dec 2022 06:59:19 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p5iD5-006zpd-Sb; Thu, 15 Dec 2022 06:59:17 +0000 Received: from umang.jainideasonboard.com (unknown [IPv6:2401:4900:1f3e:7d24:3f0:3e81:fb16:ab4d]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 312A44D5; Thu, 15 Dec 2022 07:59:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1671087548; bh=RngX/iK1q3MPQdqSLGAYLK2c1bMLyu75yAOqBHRU8M4=; h=From:To:Cc:Subject:Date:From; b=Cp1vE3QHXqJpFku2pW2wJl4PZN985abL3hJ1u4/MM5RgsalktePX1s2v/xcGl8Rfq E4YQXklqSG/fKt/w0+EbqkGsSzDfOxTXpj/Jsyxdbk+Ra4nA3RMGJ238RlJK98+tmQ jsrpwEOiUghhHgL5t0nD9Ym9X7z37fC+1/glC4Bg= From: Umang Jain To: linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Kees Cook , Stefan Wahren , Greg Kroah-Hartman , Florian Fainelli , Adrien Thierry , Dan Carpenter , Dave Stevenson , Kieran Bingham , Laurent Pinchart , Umang Jain Subject: [PATCH 0/7] staging: vc04_services: Remove custom return values Date: Thu, 15 Dec 2022 12:28:46 +0530 Message-Id: <20221215065853.34477-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221214_225916_118826_E7CE5E1E X-CRM114-Status: UNSURE ( 7.03 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The series removes the custom return values from functions and replaces them with linux error codes. This address the TODO vchiq interface: * Get rid of custom function return values Umang Jain (7): staging: vc04_services: Replace vchiq_status return type to int staging: vc04_services: Drop VCHIQ_SUCCESS usage staging: vc04_services: Drop VCHIQ_ERROR usage staging: vc04_services: Drop VCHIQ_RETRY usage vc04_services: vchiq_arm: Drop VCHIQ_RETRY usage on disconnect staging: vc04_services: Drop enum vchiq_status remnants staging: vc04_services: vchiq: Drop custom return values from TODO .../bcm2835-audio/bcm2835-vchiq.c | 12 +- .../include/linux/raspberrypi/vchiq.h | 65 +++--- drivers/staging/vc04_services/interface/TODO | 5 - .../interface/vchiq_arm/vchiq_arm.c | 122 +++++----- .../interface/vchiq_arm/vchiq_arm.h | 12 +- .../interface/vchiq_arm/vchiq_core.c | 216 +++++++++--------- .../interface/vchiq_arm/vchiq_core.h | 18 +- .../interface/vchiq_arm/vchiq_dev.c | 36 +-- .../interface/vchiq_arm/vchiq_ioctl.h | 8 +- .../vc04_services/vchiq-mmal/mmal-vchiq.c | 11 +- 10 files changed, 245 insertions(+), 260 deletions(-)