Message ID | TYCP286MB23232B7968D34DB8323B0F16CAFB9@TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp881325wrt; Fri, 6 Jan 2023 07:29:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXu4aTZpI5tgm8FSHFiGuq2vbzVhqVW/oD/6jMFG8LBE2ZilZxJWyhjhM/JQPZTOeDUe8r90 X-Received: by 2002:aa7:d393:0:b0:490:47c3:3d78 with SMTP id x19-20020aa7d393000000b0049047c33d78mr8246348edq.1.1673018979825; Fri, 06 Jan 2023 07:29:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673018979; cv=pass; d=google.com; s=arc-20160816; b=iUxgUzKi0GvlxwlnMjXKD+6xtc5988mG78jTdElcknaLuJVKcg67ITqDpMjSbemTxb /hiverRZf/bd+04Q8/cOfoLBT0ws/pC1B9ARpj38ffQ1LvCZSARjzRaduuLmZaQXKQjy ywHEfpgfGFLo/3MaGeLmmd4QL/xGbuhRE+pBnrlSP2les0E/fU1HNy7drZl+6DqzbMZ9 q4EouhsUnosp2dW4jjHwY38e5mNZ0BL5IN8rKAJblsX+YZoP3O0ejFrNO+ER2XUGTOD0 xx87roLCHFnGv2Jbnv09waNllFwGHMisTUw6PBe8/kMzTzdWzEw2fY//chYoUnhLaz2a Vj5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=1BmRLGvIFGf6x6MsdNchUu4m49Fskrvy5WlA1WAaOJE=; b=JWTxCcrVpKRwxYeAy5V1gCNHERKquOpp1iG0O4UIkIEaX5SpcumBcAuPKka05C2jsV EHK5+uBuXF2AYsBdNLxyp+lNdN+/2AN6IEtefC6lwOupt9eOqScliN3k4Zkamj0nD44/ vna9XccEMr56UAduIQ8V1h1+9iRpxJeZjQLLaAq8fOcD3XxlacD99OnHVH2O2kosFNhA OXfBDVPhxULXxVZs6A7oW2ONreSMYt1WtIcXKnSDCw/UEfJojrMSanCBdOlXaovkbUhp HGBh8BoWm2CQaO1H5lmZBasUjNHd8rfAaoeV5ijRZJpR/HIhyDvAwLx1gWhtk4upSrjr gmjg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=ZdmwauXL; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i9-20020a05640242c900b00485fa68b06csi2481861edc.354.2023.01.06.07.29.15; Fri, 06 Jan 2023 07:29:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=ZdmwauXL; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235256AbjAFP3A (ORCPT <rfc822;tmhikaru@gmail.com> + 99 others); Fri, 6 Jan 2023 10:29:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235315AbjAFP2v (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 6 Jan 2023 10:28:51 -0500 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01olkn2072.outbound.protection.outlook.com [40.92.98.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D176D8B751; Fri, 6 Jan 2023 07:28:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=byeEh3Rp9rK9rjDWdV+oP6uAjLvGZWmUfq77Di9dxJtl+V2UgE9Gli1LSqHtMv+ULrTf89bUOfKv58C1aKINSpESBBk1/HkMjPZh4PERaOlTL/85JszRcFjKylYgT/2h7YOybdpv4ZrtRtEskCvAvokdseNO+FFD9JL1UgtMjwirdfyIvNIh0lzgMGNUTMw6UeAwLrMBOVd0bf7cgqOygsVTNNlaRCsy+K4CnyXrrmTyxDZP2+dQ596tpiWjvQzPE/mwzwVYY2ltXLtQzGMQNtsRpDeYLiMWteySCDfNCRkNPnVzVVeFbeU4lMx0UupB3LQ2x5j3XGnq2EvHIyyNoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1BmRLGvIFGf6x6MsdNchUu4m49Fskrvy5WlA1WAaOJE=; b=RHHjVVdHTttCwBre3q4Zfus9qQX5zF2y2uZJ8U6oQVJZwjAdCiEX3vz+dSHW5GUwPWdlquOQP4HuiwtZz860MnfFM6YfU4KZat6TVFYpIExM4dZrarmkwUAf2uwGXzYpN5lVCqaZ9BsSOA7ouULDImPtx0iRPKGNR/w3E+EY7LQYawGEvWSgLIam+zjSSn5ZlwCSfSHuTuOoPI1gZtWhJT9Wj7y0Yo781X3Ep/tYXETnVTuRjE+E7/tYufh4TVmTn/M8lIj3BKfuziBMA5lLZCKJxHDR0VFm4UVRwP1waNV1ZzaDUGZJXyjPZX0bUcvy9+FGIWd1fvu5IeCUVR0Img== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1BmRLGvIFGf6x6MsdNchUu4m49Fskrvy5WlA1WAaOJE=; b=ZdmwauXLwuNdGR/byU+gKUM1mG95ijvT++BP08dFpcm3ZuTtB9b+z2clrzxUInAPZPqs3Kw4bjCTeaznlBL+h8qT+zsh11x37PbLQds6G0Tv281TG5538mU3KY559EWY3v4cXooW4DHzzgHQYbVNBFhLxDeStMQHI82XmvjOaOM1T4FcCX1B+x0xlzKUtdgKWSQMED+NNVTCvU5A8hK9E1nt0WOUmQBDxaf9opBUhhSNnEFnGoufslc7KG5qOSM7w93uwS5Af8Wq+jI9OeLXHWJB1is81mHA8nJtqPhZ24Ml/B84/QGPH1eraApDK+p4NPv7WZjfRi6j17YeJVEngw== Received: from TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:152::9) by OSZP286MB2315.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:181::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Fri, 6 Jan 2023 15:28:45 +0000 Received: from TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM ([fe80::ff96:9cb6:e047:c605]) by TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM ([fe80::ff96:9cb6:e047:c605%4]) with mapi id 15.20.5944.019; Fri, 6 Jan 2023 15:28:45 +0000 From: Dawei Li <set_pte_at@outlook.com> To: lgirdwood@gmail.com, broonie@kernel.org Cc: alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Dawei Li <set_pte_at@outlook.com> Subject: [PATCH v2] soc: qcom: apr: make remove callback of apr driver void returned Date: Fri, 6 Jan 2023 23:28:03 +0800 Message-ID: <TYCP286MB23232B7968D34DB8323B0F16CAFB9@TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [wOxWUVj8v5B3sibpjM3IbgS3aY/UczNH] X-ClientProxiedBy: SI2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:4:196::22) To TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:152::9) X-Microsoft-Original-Message-ID: <20230106152803.27942-1-set_pte_at@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCP286MB2323:EE_|OSZP286MB2315:EE_ X-MS-Office365-Filtering-Correlation-Id: d36ba945-1d63-4aae-117a-08daeffab322 X-MS-Exchange-SLBlob-MailProps: 7J/vb0KDx3izZZWclzhZiVSziz+VEPOckQAHMgMaaTBtqwRxrt95MFmY1BAtt2TFXK1trFz4np0j1/RIjX07ti0WJh12VtYVpD7iuovdCfCZ+64p5W4px7i1vtnf8lz8cVeefUYw4R0fu074VixKyiXYNAIIf/b8bG3uFtAC1mLnmu4tnVuy1BJ69+YzQNiRi/7XQkbhYUEAEBgUrjvXIdx4YXwAombEgXDyUqIKGiUULWgpSpI4hTvSI7mZrSeuS8N/RgRbj7FVeKZzjKy4HPGel3EKtSkkG4yBFvfRT83ku38D4zPqtOp7hKv5uy1Uo+12QpWzSQ/HRD2te0oQkI0ItGJyLURkqfMufgDCO/cBAJir1G3wG0w2Cl0ATtyYh0Ei2fO8Fs81hbChiYTP0g3VqU1NQ2jeCynrqPch6I/74kUKudzw8nEkr1d4GsTo7z9b9l7MS9ZfEVIHeeM0i+vynTn+Hu79tsS+2Sa1n7xetrtQyPz3A6wq4a/tnDVMx+EXMksDWBdNnNgBGPgVEF8ygMUrssyQ5QMT9+iwoIxBrfAC1FxMLlzEoKNehNJnltTnsOZUBuf2LLscs8yPOeGKglgbgpNMYb2WPE62mH2lZlKemowuAKaFEo6WIfiMndfUdpxFIOEpQEQqEwda20vhv5Ad+EbtnTOoPXF/7WP6mm4PYBNP8vZynzvnwoesTONdCYgZf34hKzIeUwJxYY2CBVEUiVt2xwji8N0A6SKEM3M87wZCDb6Vh5P1IKWJqUtt69nFgBLNA9dFeT/Kvp5PkE7FVyN2skzBx4Hzboo= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PdE29EoagZCD9dIgap/0rI/Zg+hr0fFKcJiYMG8BojQD4FAb58/YlNLPXUS3DLweT8mO+y+MYfRIYm2KhgRHAgTn7mpkeuqHP2lrIyaQuIKK97XslMvQILs2W94X3DKaR4H4azApIeEMWTBIfxBotj6I2uBWQxeBZcCEX0SqoA/q62Zey94IlEK8a8eXnoSihP4wvsKYSiR1Ce0sHd1bXnRT+LDKUsf8ypriO1sPJhQfWJVlJDab+lcEiSqN86sRSfWRkSvfqrhGD1fndXTav7b5VpE8Z9uxDuyblSCQTO7KXTO61Vu3ZoQAmJ44jM0lZpu/xSapV2Kdj5Pc7gvVC3U1hjm1n2TPocNbe+TrFVf+bstzYTJeFq4wIDvH7d/z6lWiCFlxO3tFubFXEPQ6W6cetzZZ6eXEaDniFmtErg5QntBN6f9LVXzzqOC5yG5HPtGgTKQgwPRLl503l9bY5EGIb+C6lcduyVfKtdGzL5OU+bkw3UovKdWo27pDmx1FLJcwOJPvfob6enEElPv0EGQqSbLh6jWBVbelu8t/T/MHV+2AVWd+1bSmeloonCWkqNb2ym+uqhDSkQ1ZEtIYi+ycL+/RswAU1oIPie3xcCLS4cBj++fJnskIJbyNzhuMvjKZBMZMhUAojEMBshcWZQ== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Rrcmz3THTnzaeefWMyNZzW2ojwp6XYmZxCdDLeHCG/cX/vUsy6XsHpKp1015s405yGwN13fMy/06ShowASH7bfjmAE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tCtLQV3XiZI8c7hRJnMhwPCrGJdhQiHinqVVnB7+HP/y3hhLCz6kVmNezEoylWh8infbIG0LJy6BOdRV0W58b2L09XGaQtd3HgTBFOu1URAER3YZzQw/+g== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d36ba945-1d63-4aae-117a-08daeffab322 X-MS-Exchange-CrossTenant-AuthSource: TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jan 2023 15:28:45.4906 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZP286MB2315 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754287549638102342?= X-GMAIL-MSGID: =?utf-8?q?1754287549638102342?= |
Series |
[v2] soc: qcom: apr: make remove callback of apr driver void returned
|
|
Commit Message
Dawei Li
Jan. 6, 2023, 3:28 p.m. UTC
Since commit fc7a6209d571 ("bus: Make remove callback return void")
forces bus_type::remove be void-returned, it doesn't make much sense
for any bus based driver implementing remove callbalk to return
non-void to its caller.
As such, change the remove function for apr bus based drivers to
return void.
Signed-off-by: Dawei Li <set_pte_at@outlook.com>
---
v1 -> v2
- Update commit message.
v1
- https://lore.kernel.org/all/TYCP286MB2323DBD1F01BF918ADD0ABCECA189@TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM/
---
include/linux/soc/qcom/apr.h | 2 +-
sound/soc/qcom/qdsp6/q6core.c | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
Comments
On Fri, 6 Jan 2023 23:28:03 +0800, Dawei Li wrote: > Since commit fc7a6209d571 ("bus: Make remove callback return void") > forces bus_type::remove be void-returned, it doesn't make much sense > for any bus based driver implementing remove callbalk to return > non-void to its caller. > > As such, change the remove function for apr bus based drivers to > return void. > > [...] Applied, thanks! [1/1] soc: qcom: apr: make remove callback of apr driver void returned commit: 33ae3d0955943ac5bacfcb6911cf7cb74822bf8c Best regards,
diff --git a/include/linux/soc/qcom/apr.h b/include/linux/soc/qcom/apr.h index 23c5b30f3511..be98aebcb3e1 100644 --- a/include/linux/soc/qcom/apr.h +++ b/include/linux/soc/qcom/apr.h @@ -153,7 +153,7 @@ typedef struct apr_device gpr_device_t; struct apr_driver { int (*probe)(struct apr_device *sl); - int (*remove)(struct apr_device *sl); + void (*remove)(struct apr_device *sl); int (*callback)(struct apr_device *a, struct apr_resp_pkt *d); int (*gpr_callback)(struct gpr_resp_pkt *d, void *data, int op); diff --git a/sound/soc/qcom/qdsp6/q6core.c b/sound/soc/qcom/qdsp6/q6core.c index 5358fefd4210..49cfb32cd209 100644 --- a/sound/soc/qcom/qdsp6/q6core.c +++ b/sound/soc/qcom/qdsp6/q6core.c @@ -339,7 +339,7 @@ static int q6core_probe(struct apr_device *adev) return 0; } -static int q6core_exit(struct apr_device *adev) +static void q6core_exit(struct apr_device *adev) { struct q6core *core = dev_get_drvdata(&adev->dev); @@ -350,8 +350,6 @@ static int q6core_exit(struct apr_device *adev) g_core = NULL; kfree(core); - - return 0; } #ifdef CONFIG_OF