From patchwork Thu Dec 30 11:31:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gaston Gonzalez X-Patchwork-Id: 12701397 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 47D82C433F5 for ; Thu, 30 Dec 2021 11:33:54 +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:References:In-Reply-To: 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: List-Owner; bh=QrC5/vvVUQF5JHsIW4Tfm435eYmfut6sxmbHNjDoT+w=; b=kkMoJ2GOKouIH+ BmBbV9jwBPJwUQ5K4Z+n4ETJ8K4ieuMbelBV6ya6ml5lDSinGC/zjvAWjPPnh3NinEdv0AlQEN+a/ Nv83wZnFUlNsIp7Sa/F4lGcvQtnEcoc+IadXbA5SQ7UqzlEf6M5xsWb+yEfPEdar0IAalLVvXYgdX 8i+NQEXQEGSWSZcFkiytpN8zJBJrh+lSZf5G5dXSedb1dryyVAV4Wdh5x9yav+a/k5aVaIwmDzhOe qCMfMcJl1e+LMnKZCvrrYy6Z+nyHISp8HW+SwnT2IQ/In25JS2M43AXOkJKTz4QoWHa+qXsMRBdlO yTBYk66Hvdw5uuTUPw0g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n2tfk-004I4S-Pa; Thu, 30 Dec 2021 11:32:40 +0000 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n2tfh-004I3Q-MP; Thu, 30 Dec 2021 11:32:38 +0000 Received: by mail-qt1-x82a.google.com with SMTP id a1so21393777qtx.11; Thu, 30 Dec 2021 03:32:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nbtCBNF6sxyvZFWUemZV++F4nWdCRsnh+BO2TPv43oo=; b=hUJxB2QDslx3YNl5pocgvID8fPQB1GANa4RM6OjJHB61N+RLR/lcBOf0rIhO91SGyI lYRmPggUcwoQkHJtCL+Uj0XFWe/NdQEZY2lM9Fm8va3qrYKutAxGa+bvrUZbAiggrTm5 CALNPlBfkis2yF869vjq6Q2bDz9X6+dYqx2ZtTzcy9jwDB2K6S3aZ0tGzpqA2kBtRVLT mUZSdtVtv4ilMC9uGg3qE+n3rFlTsaTWkVdWTZswbC5tebqasKFQ0N+x+3lJ6Uyqci52 qVDR3ldhF4heiHeDKBOpqy6C07aYvIkciVnqSF/506SL6HJVKlfza6KfqdO7v8b0LT5A ey4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nbtCBNF6sxyvZFWUemZV++F4nWdCRsnh+BO2TPv43oo=; b=AdoPCDem3SRjJ/CuXVuS/11Y4RJuGum3f5ErR9EYd+UpKSpyrBRa3Yf1XLHjwP9KM1 qL7oviUaC0LPNYrt6nxHuH6CUk3QZ1wNyvSpUd07E+0u8qPFCLL1Ja/zQ5D0zrnkc3gj GKwT7x+WR4Hb/2ybyIxK1azlxBJpgNccKA70McvRYZL47+6fTN1i3sAbs7eyPIJJL1Cv p4Xdwc3qZ2aCmpla6Rt4koynxMTwDO/CoCHLwCpZNkrvg74DQCG0619ILYGGwkJ98k9L th0eUBVGq+vxvheQgy3LqPt4qecSESP00McDJcyBpIp35Hu2qXCg/4fllDFICYBLk1Ez s4Cw== X-Gm-Message-State: AOAM530u+8s3t1zBAc6p3g0R6h8EpV6w+FitaAQ4cwYntQ11ys6MtYT3 S+of8v4cwGXBST5D9nwJ6+A= X-Google-Smtp-Source: ABdhPJyKW4CawNE3aJaa06FIHWRv2QQ6s4gqoNbfviXivu684EH0slEHhlaQ5RHmGrEkya481hb8mA== X-Received: by 2002:a05:622a:1c6:: with SMTP id t6mr26056580qtw.211.1640863956489; Thu, 30 Dec 2021 03:32:36 -0800 (PST) Received: from localhost.localdomain ([181.23.70.139]) by smtp.gmail.com with ESMTPSA id v5sm20348559qkp.126.2021.12.30.03.32.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Dec 2021 03:32:36 -0800 (PST) From: Gaston Gonzalez To: linux-staging@lists.linux.dev Cc: gregkh@linuxfoundation.org, nsaenz@kernel.org, f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, juerg.haefliger@canonical.com, rdunlap@infradead.org, dave.stevenson@raspberrypi.com, stefan.wahren@i2se.com, unixbhaskar@gmail.com, mitaliborkar810@gmail.com, phil@raspberrypi.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, gascoar@gmail.com Subject: [PATCH v2 1/3] staging: vc04_services: bcm2835-audio: avoid the use of typedef for function pointers Date: Thu, 30 Dec 2021 08:31:25 -0300 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211230_033237_741587_D5854835 X-CRM114-Status: UNSURE ( 9.87 ) 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 Replace typedefs bcm2835_audio_newpcm_func and bcm2835_audio_newctl_func with equivalent declarations to better align with the linux kernel coding style. Signed-off-by: Gaston Gonzalez --- .../staging/vc04_services/bcm2835-audio/bcm2835.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c index c250fbef2fa3..628732d7bf6a 100644 --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c @@ -52,20 +52,14 @@ static int bcm2835_devm_add_vchi_ctx(struct device *dev) return 0; } -typedef int (*bcm2835_audio_newpcm_func)(struct bcm2835_chip *chip, - const char *name, - enum snd_bcm2835_route route, - u32 numchannels); - -typedef int (*bcm2835_audio_newctl_func)(struct bcm2835_chip *chip); - struct bcm2835_audio_driver { struct device_driver driver; const char *shortname; const char *longname; int minchannels; - bcm2835_audio_newpcm_func newpcm; - bcm2835_audio_newctl_func newctl; + int (*newpcm)(struct bcm2835_chip *chip, const char *name, + enum snd_bcm2835_route route, u32 numchannels); + int (*newctl)(struct bcm2835_chip *chip); enum snd_bcm2835_route route; };