From patchwork Thu Jan 11 10:52:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 18950 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1362334dyi; Thu, 11 Jan 2024 02:53:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8bjxn+RgCtynnH8Tt7IVyGioGxYLRSvTlkDcghfv4YWHbPO30GebXv+axKp6UKQNCMsNY X-Received: by 2002:a2e:3a07:0:b0:2cd:4f03:ad57 with SMTP id h7-20020a2e3a07000000b002cd4f03ad57mr324320lja.79.1704970402246; Thu, 11 Jan 2024 02:53:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704970402; cv=none; d=google.com; s=arc-20160816; b=QxLFVEaDXOvFb7yMC5PIsR59X7GIFF5P0vSY7jpkDWILOHNmc3L1T9eIsdY+4ckVSU JtfurZTJ2oiPVLfdC3+BtsusvcJFKVkmKT+drwROhTyS5nOw0WJllCKV0Twc8j1C8CzA ljVyAjp0gPLHcHt2sKxCOOsgmY2DvXI+xiOyYKAA4/6bd/a1okSN87T2rp51ZqB+5G3J W9nV31x9Vt3SmuIWr2sZ0COKccVD+A89CH3S69Jn6S9Ihpwz8WYQMNON5fmrtkJm3Vip XmwS//uVmXqxWMKZqsarXFEWNIo8JaPuY2URduVFN0CEeZoYkCoXXcUXEMyTYe+EHfnf WgAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=2BblJqIytmhhEKYQepmBR2NdT2iQ7zRx4WffuwF4LWM=; fh=CUSLW4jgLN56Ew8AjCIrFKTaoeZ27cJOZmkfMWo61nk=; b=tXkGaQhUYaFfdk4UK9zMhPJy3lEbRwZam2Bydc2tbQvx2EPYO/j9Pw0BMDkdl2f/lv XbdysHTJPCdeIeullqTbS0oDFlpCS2f80MlhHfgg/xIdsyIPTViaBBtPzZinz4IUI3zu oeSLlndohHXaYSPxfzTqpH/vwptS3Cfrr2a6RKtWju1KzIckhfJwjvwmhHghYcLjKqox 2OKvYBPCOcaVBbSlc1gVJW62pabmtFX3DkEmCmy/XMh1jnTsVRITKHU1iAUTcPkRElf0 1WatOij0w5l+wePAPfonDH7Pyjq8UhdAwLlOyOnn5jrRprLyulec25MYnN7KbjjfI1Il VQ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Xhe1Vp8n; spf=pass (google.com: domain of linux-kernel+bounces-23415-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23415-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z8-20020a056402274800b00557ab3b5e62si411277edd.233.2024.01.11.02.53.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:53:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23415-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Xhe1Vp8n; spf=pass (google.com: domain of linux-kernel+bounces-23415-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23415-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D2E221F23119 for ; Thu, 11 Jan 2024 10:53:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B15AD14F7A; Thu, 11 Jan 2024 10:52:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Xhe1Vp8n" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9BC7314F60; Thu, 11 Jan 2024 10:52:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1704970370; bh=fshr/55h3wT+fevwdGwbnLEUOYH9vCJUJk2ISAPoJYk=; h=From:To:Cc:Subject:Date:From; b=Xhe1Vp8nV66TBCawvwAjnPaTLzQaQRdebTDUFoyaDaEdR+w7Q6enrQzLbXkJOxWa7 1VIqSTYMwjMLwjDtvnYwVkcUwI1l6LTGmCn5Iuy+3shh+mnUV05U1fiImxbTAoJ7px GuuQKFn9e37GJeFxCTusXKaQ8Cw1uOqaDBBBFKtPcKvUqwRqF144BMDZToKUGwTGX3 dX9k4KqF+nAWHyqDnDqvpcMYpPBL5SH/3Osznm5XiaC8H929IbbCrlO5UzgpySdOST F57IRWOqWplN9TmWYzEBEHQ5X/y1XBjepO72lrlQwqdPBrjvu8C/JEKP3YK6TGicUS I3XClm5Z+cASA== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (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: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id CDD2237811D1; Thu, 11 Jan 2024 10:52:49 +0000 (UTC) From: AngeloGioacchino Del Regno To: lgirdwood@gmail.com Cc: broonie@kernel.org, perex@perex.cz, tiwai@suse.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, ribalda@chromium.org, nicolas.ferre@microchip.com, u.kleine-koenig@pengutronix.de, kuninori.morimoto.gx@renesas.com, nfraprado@collabora.com, alsa-devel@alsa-project.org, trevor.wu@mediatek.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 0/7] ASoC: mediatek: AFE drivers cleanups Date: Thu, 11 Jan 2024 11:52:40 +0100 Message-ID: <20240111105247.117766-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787791044471246582 X-GMAIL-MSGID: 1787791044471246582 This series converts MediaTek AFE drivers' probe functions to use dev_err_probe() and devm functions where possible and, in some cases, dropping the .remove_new() callback, reducing the size. Cheers! AngeloGioacchino Del Regno (7): ASoC: mediatek: mt8173-afe-pcm: Convert to devm_pm_runtime_enable() ASoC: mediatek: mt8173-afe-pcm: Use devm_snd_soc_register_component() ASoC: mediatek: mt8183-afe-pcm: Convert to devm_pm_runtime_enable() ASoC: mediatek: mt8183-afe-pcm: Simplify with dev_err_probe() ASoC: mediatek: mt8192-afe-pcm: Convert to devm_pm_runtime_enable() ASoC: mediatek: mt8192-afe-pcm: Simplify with dev_err_probe() ASoC: mediatek: mt8195-afe-pcm: Drop .remove_new() callback sound/soc/mediatek/mt8173/mt8173-afe-pcm.c | 78 +++------------ sound/soc/mediatek/mt8183/mt8183-afe-pcm.c | 108 +++++++-------------- sound/soc/mediatek/mt8192/mt8192-afe-pcm.c | 95 ++++++------------ sound/soc/mediatek/mt8195/mt8195-afe-pcm.c | 12 +-- 4 files changed, 81 insertions(+), 212 deletions(-)