From patchwork Wed Apr 3 09:31:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 785885 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 462DACD1288 for ; Wed, 3 Apr 2024 09:32:16 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 943102C99; Wed, 3 Apr 2024 11:32:04 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 943102C99 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1712136734; bh=dyAOo+VFBsweUHd5Xag2bd447ewOnMyY3G3yMPwcU1o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=AS6iRng3FKeowJ9k4S2A2IzzOkTS9xnoE9I0JJhChjYleJmbPMHokZlzAgBtOHtlN OPKo4tuvCc0zcMjqF/9k2xtrYNML5j2irY/FB0YCB5eHe6wb3cvXQWdfLOOn+DWdmi 7HAwxb4pXSMwmIb6IEH4+cynZHsgmsP6U/PdV5Sw= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 55ED1F805CB; Wed, 3 Apr 2024 11:31:33 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 94154F805D3; Wed, 3 Apr 2024 11:31:32 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 45734F80568; Wed, 3 Apr 2024 11:31:26 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C5EC2F8016E for ; Wed, 3 Apr 2024 11:31:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C5EC2F8016E Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=RfaLQ4WV DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136678; x=1743672678; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dyAOo+VFBsweUHd5Xag2bd447ewOnMyY3G3yMPwcU1o=; b=RfaLQ4WVZMqrkVy4/lZ9NnT6JuWlQUUnrvQ1nVkZb7+T+dVgOK8tu+hp iZyG6PeaNZiUI4ImoMCNf0vqpFqsmO6dxGya1HRRWCu6ZF6mMHWUciZjc ZZMxAPdUpR4TMnsWtWOMFzraMs0Ylit/zBQeuh/IR9twQyc0vcNNjb0xo 3zBIe/9xhkgu75YWBTK5mKk6Ld/NrVw3Hj5+T5NfHtu8deOUeollwopCm Uu61Jd+1zWh2JExg4lEz3iIW5oDhHifWCufMjSJfizoZHM4A6zL0fKjqr zmzBlU/kUT41tRUgX6Ew02qRC2yGGQVeQGEj6Ke6wev9relJ6/WGSm6IT Q==; X-CSE-ConnectionGUID: c1h2YyByQwSH4DlxcXUCYQ== X-CSE-MsgGUID: vYcRio8xSj+830HwZLcrFw== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218678" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218678" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:15 -0700 X-CSE-ConnectionGUID: 947EalOQQeisSw3SqC2xCA== X-CSE-MsgGUID: r9tbWrhFRaCAYbzC1MClhg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797535" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:13 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 01/10] ASoC: Intel: avs: hdaudio: Use devm_kstrdup_const Date: Wed, 3 Apr 2024 11:31:36 +0200 Message-Id: <20240403093145.3375857-2-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: GLEMEPTIYW2JMBYEFYY3PJX3ZELOTGTW X-Message-ID-Hash: GLEMEPTIYW2JMBYEFYY3PJX3ZELOTGTW X-MailFrom: amadeuszx.slawinski@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: HDA codec name is constant and we just duplicate it, use const variant of devm_kstrdup to possibly save a bit of memory. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/hdaudio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/intel/avs/boards/hdaudio.c b/sound/soc/intel/avs/boards/hdaudio.c index 79b4aca413338..2de703b909c30 100644 --- a/sound/soc/intel/avs/boards/hdaudio.c +++ b/sound/soc/intel/avs/boards/hdaudio.c @@ -54,7 +54,7 @@ static int avs_create_dai_links(struct device *dev, struct hda_codec *codec, int if (!dl[i].cpus->dai_name) return -ENOMEM; - dl[i].codecs->name = devm_kstrdup(dev, cname, GFP_KERNEL); + dl[i].codecs->name = devm_kstrdup_const(dev, cname, GFP_KERNEL); if (!dl[i].codecs->name) return -ENOMEM; @@ -191,7 +191,7 @@ static int avs_hdaudio_probe(struct platform_device *pdev) if (!binder->platforms || !binder->codecs) return -ENOMEM; - binder->codecs->name = devm_kstrdup(dev, dev_name(&codec->core.dev), GFP_KERNEL); + binder->codecs->name = devm_kstrdup_const(dev, dev_name(&codec->core.dev), GFP_KERNEL); if (!binder->codecs->name) return -ENOMEM; From patchwork Wed Apr 3 09:31:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 785447 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 D20ADCD1288 for ; Wed, 3 Apr 2024 09:33:08 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 3F2142C66; Wed, 3 Apr 2024 11:32:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3F2142C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1712136787; bh=Uf61lRVj55WHImUiBlCNQuyLIKLzrbNeeTxDN7YZoBI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=sZflJNcuuArVjLU+TSiZWh1GAf3BqdS5QKX/BFDDDgqwCJBLPOpgZtapxHepjBS3p e8Igg+S4/QjNY2O88LkLMPhgcMdxT31pT0e3z1iUnPF8bhTXZ6lPcLrzQkTUGRLDP0 4Gy8rnU9opRtjbCPbGxY4T4SL3L9fIbDzu5intmg= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 85621F8064C; Wed, 3 Apr 2024 11:31:41 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id C3C44F80659; Wed, 3 Apr 2024 11:31:40 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DE6C7F805B2; Wed, 3 Apr 2024 11:31:30 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E3096F8020D for ; Wed, 3 Apr 2024 11:31:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E3096F8020D Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=NjvORwxD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136679; x=1743672679; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Uf61lRVj55WHImUiBlCNQuyLIKLzrbNeeTxDN7YZoBI=; b=NjvORwxDO2IjfRSPF3jWTqknNW2QdIpctKgokz6vIdRTq2uuXTSZXbYi vDmVRf2LZqL1wJU3l5877ZF7g59gmci8yVGJzR7mPCBbgEvMlLefTYLLU kW4heFlxF6RCOu/py6glLa0J7QlMTe80KEfGCbdQCdEs+h1HkgWMBoJmO 2o7hOLy6niI2/8lblGqOt2/r2xdl0hmpeIGYZ3p1F+aRtX6Ox8EQ3KJGR OdgqptGBfk5y2GEl1h4GVV0QPtiZr7Pc7KoRWL6F00lJrKcom09iMeAw8 XZsvFNnqRi1xwof8fyw7GizYlDQW+QhXOfTwlAZZRUd/u7sQytbkEGGez w==; X-CSE-ConnectionGUID: jTFmdanRTWuik2YLU+gzPw== X-CSE-MsgGUID: 4GnvQMn2SaubWgGTt/WdnA== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218683" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218683" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:17 -0700 X-CSE-ConnectionGUID: k/r99CPlRYqUchUEr9fhxQ== X-CSE-MsgGUID: XpQjvu2fTWScFgk96aZwEA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797538" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:15 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 02/10] ASoC: Intel: avs: Use devm_kstrdup_const Date: Wed, 3 Apr 2024 11:31:37 +0200 Message-Id: <20240403093145.3375857-3-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: JKMKKXLZVL75C4OQRPG6JVO4UPE7BYCF X-Message-ID-Hash: JKMKKXLZVL75C4OQRPG6JVO4UPE7BYCF X-MailFrom: amadeuszx.slawinski@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: FW name is constant and we just duplicate it, use const variant of devm_kstrdup to possibly save a bit of memory. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/avs.h | 2 +- sound/soc/intel/avs/utils.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/soc/intel/avs/avs.h b/sound/soc/intel/avs/avs.h index f80f79415344a..9a02e2b528bc5 100644 --- a/sound/soc/intel/avs/avs.h +++ b/sound/soc/intel/avs/avs.h @@ -107,7 +107,7 @@ struct avs_spec { }; struct avs_fw_entry { - char *name; + const char *name; const struct firmware *fw; struct list_head node; diff --git a/sound/soc/intel/avs/utils.c b/sound/soc/intel/avs/utils.c index 82416b86662d8..8100c2fa0a7ed 100644 --- a/sound/soc/intel/avs/utils.c +++ b/sound/soc/intel/avs/utils.c @@ -250,7 +250,7 @@ int avs_request_firmware(struct avs_dev *adev, const struct firmware **fw_p, con if (!entry) return -ENOMEM; - entry->name = kstrdup(name, GFP_KERNEL); + entry->name = kstrdup_const(name, GFP_KERNEL); if (!entry->name) { kfree(entry); return -ENOMEM; @@ -258,7 +258,7 @@ int avs_request_firmware(struct avs_dev *adev, const struct firmware **fw_p, con ret = request_firmware(&entry->fw, name, adev->dev); if (ret < 0) { - kfree(entry->name); + kfree_const(entry->name); kfree(entry); return ret; } @@ -282,7 +282,7 @@ void avs_release_last_firmware(struct avs_dev *adev) list_del(&entry->node); release_firmware(entry->fw); - kfree(entry->name); + kfree_const(entry->name); kfree(entry); } @@ -296,7 +296,7 @@ void avs_release_firmwares(struct avs_dev *adev) list_for_each_entry_safe(entry, tmp, &adev->fw_list, node) { list_del(&entry->node); release_firmware(entry->fw); - kfree(entry->name); + kfree_const(entry->name); kfree(entry); } } From patchwork Wed Apr 3 09:31:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 785448 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 17958CD1288 for ; Wed, 3 Apr 2024 09:32:40 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 0D1122C64; Wed, 3 Apr 2024 11:32:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0D1122C64 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1712136758; bh=ksuiznIoJxFzb1RHAvr0zISxppTJtV786zLmv8pdFSg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=tK5Sm0BxJy2dJCHRfi79Nv+everK9YxHu7PjCaOjqjnPlHmaKKVvs3XNQKlzm52tn R478K6eFuQA9HGEKyE03vmZkPL2hN4LFujiChNOqLqNRGA/iBJd6NC0EAnXBMZR6Wb BLZ7C55vi0pmBdpET1LQhSlW0Z7R5WDMehSvDHTo= Received: by alsa1.perex.cz (Postfix, from userid 50401) id A9E82F80608; Wed, 3 Apr 2024 11:31:36 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 6FEB4F805F4; Wed, 3 Apr 2024 11:31:35 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 30C90F8055C; Wed, 3 Apr 2024 11:31:27 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id ECC6FF80114 for ; Wed, 3 Apr 2024 11:31:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz ECC6FF80114 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=MWo+cmFZ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136681; x=1743672681; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ksuiznIoJxFzb1RHAvr0zISxppTJtV786zLmv8pdFSg=; b=MWo+cmFZGJ5s/hEWtBU1JpG70SzSvto7tbYgajgXwu9gc9GU4gLTffoU x+Gh6RgdCJ7hunvLjHiKYJMg6aZMc0NdJUk1ocvj7FwAt8zxhY7rbIyUS RM9uZzTO4C+VX7uEYdEpJql9/fMXpMYhkNqEhR269r1rhywiS8xlYU04W ntOuF1Av74J3PDDtGonpJnsZXweoB9BqRpY/VDRiBexzlJ1qs6jeysuYs O+3clwjPIEZJTDNfhMMnKYfY4YKsZ+I5650nZbyl8S5iq/8UumOKEngxd D10bqU6lEvndfIYS5jQ6AhB1UydvP7cN8ydXJpJvcSGendyUQm2FeQaaJ w==; X-CSE-ConnectionGUID: 1OkV87qoQsu3XpkWNqvRcQ== X-CSE-MsgGUID: yJb13xDXSUCle/RS20oiEw== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218689" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218689" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:19 -0700 X-CSE-ConnectionGUID: cbNBmSYVTeiNkya1WpL43w== X-CSE-MsgGUID: a+mdaRImQ++pyxrELfMr2w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797542" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:17 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 03/10] ASoC: Intel: avs: hdaudio: Constify probing_link Date: Wed, 3 Apr 2024 11:31:38 +0200 Message-Id: <20240403093145.3375857-4-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: NZBOG7WMJH2YKZTCUOCRZD6KD2RIJTJM X-Message-ID-Hash: NZBOG7WMJH2YKZTCUOCRZD6KD2RIJTJM X-MailFrom: amadeuszx.slawinski@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: probing_link is passed to devm_kmemdup, and is never modified, may as well mark it const. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/hdaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/hdaudio.c b/sound/soc/intel/avs/boards/hdaudio.c index 2de703b909c30..4433175814f80 100644 --- a/sound/soc/intel/avs/boards/hdaudio.c +++ b/sound/soc/intel/avs/boards/hdaudio.c @@ -155,7 +155,7 @@ static int avs_probing_link_init(struct snd_soc_pcm_runtime *rtm) return 0; } -static struct snd_soc_dai_link probing_link = { +static const struct snd_soc_dai_link probing_link = { .name = "probing-LINK", .id = -1, .nonatomic = 1, From patchwork Wed Apr 3 09:31:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 785884 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 CEAFDCD1294 for ; Wed, 3 Apr 2024 09:32:50 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id F09242CA0; Wed, 3 Apr 2024 11:32:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz F09242CA0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1712136769; bh=FTDH1oQvlp5NP1lmkejXPGpJ6yiFZuoKf7yu4Nvt+hQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ACyAQSnt5VN/Aj0f4qAIV0gnkVseU/NqD7oV6aHwsui9/jgaenV0hGzuyMoK9X2ZC uRMM5MUGTgzOjUQfx926SD1PYKsWhvak0uOKJtIBb5o2VdnabvaXLeQ3WCX541TyjV CaFLFUuSOvgjoTbD3Ut/WWxKJzh3S8SCfdPmwWeE= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 69A06F80617; Wed, 3 Apr 2024 11:31:38 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 527ECF805F5; Wed, 3 Apr 2024 11:31:38 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 54973F80568; Wed, 3 Apr 2024 11:31:28 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 72675F80238 for ; Wed, 3 Apr 2024 11:31:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 72675F80238 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=JNYBiHqj DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136683; x=1743672683; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FTDH1oQvlp5NP1lmkejXPGpJ6yiFZuoKf7yu4Nvt+hQ=; b=JNYBiHqjGq6I5z1UR5IYRGj8YE0qqDzN7sf9NYXdp9qlej/agsMm5huv Xw6Y50Bbz0w8Q0INF8mCqJkKMW8yAFkXe98VrBxBsy4YeNhL3d9OT9eac dSh07he3bjZVlr8gQpk6XOAVMDbG3CLw1N/fWq7O8dD79zDXnhCr0ay+y VjV0a3xLiH0KOE6Eb40Ll0TQm5R4gg/d+rkhkzfVfhFRWCCbAhQPZgIah 2hlGE2vOiQi+dJlxybp8/TNYccWa5zDis/lzotRaIJz8Wmc7fIQUx0oub dJQImQ2sHYR826Owr9SQ3F6/tSuZgMT6xOBd9tWtgq3nbqDOYg5pi+Hcg Q==; X-CSE-ConnectionGUID: 38984UkvQuSotbtGrGI/Ww== X-CSE-MsgGUID: HiVwhW6aRwSuWBcannkSvw== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218697" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218697" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:21 -0700 X-CSE-ConnectionGUID: 4noLoxgzS8qG2ti1B+o6GQ== X-CSE-MsgGUID: FdVRklATQ4OXsRArR76EWw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797545" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:19 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 04/10] ASoC: Intel: avs: es8336: Constify card_headset_pins Date: Wed, 3 Apr 2024 11:31:39 +0200 Message-Id: <20240403093145.3375857-5-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: UXF6SH7SUOEAJ4ISFD5NZN3T5DHY4DAJ X-Message-ID-Hash: UXF6SH7SUOEAJ4ISFD5NZN3T5DHY4DAJ X-MailFrom: amadeuszx.slawinski@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: card_headset_pins is never modified, mark it const. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/es8336.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/es8336.c b/sound/soc/intel/avs/boards/es8336.c index 5c90a60075773..ff3bd15132694 100644 --- a/sound/soc/intel/avs/boards/es8336.c +++ b/sound/soc/intel/avs/boards/es8336.c @@ -85,7 +85,7 @@ static const struct snd_kcontrol_new card_controls[] = { SOC_DAPM_PIN_SWITCH("Internal Mic"), }; -static struct snd_soc_jack_pin card_headset_pins[] = { +static const struct snd_soc_jack_pin card_headset_pins[] = { { .pin = "Headphone", .mask = SND_JACK_HEADPHONE, From patchwork Wed Apr 3 09:31:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 785883 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 03F69CD1288 for ; Wed, 3 Apr 2024 09:33:30 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2D5BD2C9B; Wed, 3 Apr 2024 11:33:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2D5BD2C9B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1712136808; bh=7TaebfQkikL01h/Xt59bLY/GpqScWWg7l2TJk8s/O2U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=jI4NxQv8HyqgvuuF4HeK1golwPxgSe07j5E5iLVHBy22QM1UJTcisBcNX7HiiMZUD 5+GEB97olsMWy7uFqyFYSWqBvd/3ACdLTKFz2h7b5GfQnMdgFUiI3DxyRMJB4NIYxU NGBtzDQSJH5OU+4BfB4D3Q31wD0oWky0hfUB9k1o= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 28472F80680; Wed, 3 Apr 2024 11:31:43 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id C5268F8067E; Wed, 3 Apr 2024 11:31:42 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 33EB7F80579; Wed, 3 Apr 2024 11:31:31 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 3B167F80236 for ; Wed, 3 Apr 2024 11:31:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3B167F80236 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=F80nIcX2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136684; x=1743672684; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7TaebfQkikL01h/Xt59bLY/GpqScWWg7l2TJk8s/O2U=; b=F80nIcX2viNAvL3QIhKBZaRkStzmm+w6SAEYXVZSPQsK11mPnV7l5WG0 auxU9BhoRuFx9nX4Wrc0/wJI1m8h75UGFULwvIS1nXJiadYWbl0tsLWiq cd9j4wcHJ0CUfNzCvBFdhgJsbwiegEO82/ClkXgzSt697j7U37mn0LMSL Ua7pG0rWIPuocEBK6zlalGBTqZACpI1T4RB9Ntx169lqysMSmO0sp+0tI gFDDdcRcbSBnI2o10gKgFXYRvQ/J54Dv3Y48hmYTDJmSsMedFwPM0ylsw 0NwAy9+1dderWib6A3DJZ6fuHPYXCW+k1wh0jGp5GKK8qXyluzoB3jNeS A==; X-CSE-ConnectionGUID: 2mk1qXzWRzKs+Uh+ZaUwPg== X-CSE-MsgGUID: 99n87wO2RoaZDil1AjUpLA== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218703" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218703" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:23 -0700 X-CSE-ConnectionGUID: MN8P8KzkTMaI6od6ijiikw== X-CSE-MsgGUID: mjFkUyOSRAy3IC+qNb9djQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797551" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:21 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 05/10] ASoC: Intel: avs: nau8825: Constify card_headset_pins Date: Wed, 3 Apr 2024 11:31:40 +0200 Message-Id: <20240403093145.3375857-6-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: LM6CK276YSJ7QBQP56Q3B25OFUHJH3TZ X-Message-ID-Hash: LM6CK276YSJ7QBQP56Q3B25OFUHJH3TZ X-MailFrom: amadeuszx.slawinski@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: card_headset_pins is never modified, mark it const. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/nau8825.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/nau8825.c b/sound/soc/intel/avs/boards/nau8825.c index 55db75efae414..3164745b15167 100644 --- a/sound/soc/intel/avs/boards/nau8825.c +++ b/sound/soc/intel/avs/boards/nau8825.c @@ -67,7 +67,7 @@ static const struct snd_soc_dapm_route card_base_routes[] = { { "Headset Mic", NULL, "Platform Clock" }, }; -static struct snd_soc_jack_pin card_headset_pins[] = { +static const struct snd_soc_jack_pin card_headset_pins[] = { { .pin = "Headphone Jack", .mask = SND_JACK_HEADPHONE, From patchwork Wed Apr 3 09:31:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 785882 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 11D0DCD1288 for ; Wed, 3 Apr 2024 09:34:02 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 41F802C9F; Wed, 3 Apr 2024 11:33:50 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 41F802C9F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1712136840; bh=3xPphXhzLbuA18UzOFb+kaXJTJ0k+ktqMIUg+a9AL6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=oWqtKAMAWGmnQxpPRQBmZ7n0hwAaeHPwwuXAR8+uazcylHZK2/KS9ZxZfCA5t0Kwv 3P5AYmzZUl58FJX+keF/7sBOEUGTSqdluNHyJhjxiYKuZX3KKUofYEkgTvzzMSiQoi GplX2f+Bvv2Y0E9FZVZc/HpxlnibIa16bkldtoLw= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 306EBF806BC; Wed, 3 Apr 2024 11:31:48 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 5DB61F806C0; Wed, 3 Apr 2024 11:31:48 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8D2CAF805E6; Wed, 3 Apr 2024 11:31:34 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 8FD5EF80130 for ; Wed, 3 Apr 2024 11:31:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8FD5EF80130 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=MqDfsTaC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136688; x=1743672688; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3xPphXhzLbuA18UzOFb+kaXJTJ0k+ktqMIUg+a9AL6M=; b=MqDfsTaCe6+2yIZ+5LIGPmElzRkLl+9vy3a+UH2hJVNjWNLHbojyrop6 fRrbPuiYWksOlfV/jvqljNKJsWkaME3whOFkZ+dFXQWnWwcuC8GRc/aHD XHBFG0Jz22BA1m8vX+RklWbX0BCoDlmBKBDC2WPQ/+vOmUdTzOIlql5Gc k65NBgSj1m1mgale509AF1L2PNLe4PAAeuuxHuMaL32Lk62JP6NvPZ32I E6dI1ez/kT9yWPYkLgvWnBW9YcjvnJ3YhDhHBK29etP9010h5vMdVPO2c jUmeaSwG0xER5KiqwxYSVEZypYT/QvPjAg03XaWXGTX+ULxtewrHipEKU A==; X-CSE-ConnectionGUID: HG5O838RSd+AoOAiD8u4Kw== X-CSE-MsgGUID: LrQbjs3ZQre7DXFxsafMoQ== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218708" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218708" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:25 -0700 X-CSE-ConnectionGUID: lWZ0R/YRQwSDZ/CPRdwftA== X-CSE-MsgGUID: PjStveT4SzmSB5jAlV/MEA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797557" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:23 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 06/10] ASoC: Intel: avs: rt274: Constify card_headset_pins Date: Wed, 3 Apr 2024 11:31:41 +0200 Message-Id: <20240403093145.3375857-7-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: JTLTJPAMS6SKJNMJP7QLIG3NMM6WNFU5 X-Message-ID-Hash: JTLTJPAMS6SKJNMJP7QLIG3NMM6WNFU5 X-MailFrom: amadeuszx.slawinski@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: card_headset_pins is never modified, mark it const. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/rt274.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/rt274.c b/sound/soc/intel/avs/boards/rt274.c index 1cf5242160875..e3aa28780df5a 100644 --- a/sound/soc/intel/avs/boards/rt274.c +++ b/sound/soc/intel/avs/boards/rt274.c @@ -75,7 +75,7 @@ static const struct snd_soc_dapm_route card_base_routes[] = { {"MIC", NULL, "Platform Clock"}, }; -static struct snd_soc_jack_pin card_headset_pins[] = { +static const struct snd_soc_jack_pin card_headset_pins[] = { { .pin = "Headphone Jack", .mask = SND_JACK_HEADPHONE, From patchwork Wed Apr 3 09:31:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 785446 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 0E863CD1288 for ; Wed, 3 Apr 2024 09:33:43 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 5E6972C88; Wed, 3 Apr 2024 11:33:31 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5E6972C88 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1712136821; bh=xtNP8n0UaAOz/HWZrCRaOm/mAbqQPKVM9Ax+qaR6ZrQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=j6L4GyxdJo79Ic9tfMt1Fhk4Vvi//ACnz6/CL64jJLcdvs5v24FKmloBBqf/b1Ztx EprBQxu3oRtdXnxGVuiOjJ2DMrjIoEw7n9/iSqvQ3o74BhaieOSmtr1Ntxt462/JmL JdBuOyqmZDTVW6BuE+SuUUegm7KCPuReyxSWsaj4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id CA8C3F806A3; Wed, 3 Apr 2024 11:31:45 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 57356F806A8; Wed, 3 Apr 2024 11:31:45 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 612C5F805C5; Wed, 3 Apr 2024 11:31:32 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 49E6EF8016E for ; Wed, 3 Apr 2024 11:31:27 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 49E6EF8016E Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ZOs+epNa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136688; x=1743672688; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xtNP8n0UaAOz/HWZrCRaOm/mAbqQPKVM9Ax+qaR6ZrQ=; b=ZOs+epNaI57v8uv/9DiWZRnFjNeMruiRfCp0M1FQMneBkpGZxfGkmjKq 3sETuk6picCi3W9BmeVnnNoxcexA9rvOslB2AfqqhuZMQEWD/P+xLiJOi Wq/1FqruRHFkY+r+RFligJKe4wcsVR0lL2K5TkXcSNMImRWzPG6VgtYI0 uz97bHQdYFUZBzw6BNt1Yj/rpBzDjByn9ITA9GzcnMSqsDYfkYcbFVxpo BDTqTV+JEZSaWSgfYLVOViiMvhkmZM8SjBtlBeueStNkqkpDEWSYnSgup MnD9+WeTOe2BIXvV4JguAWAfPbGLli4d6q1hJrFzvNB0icZniKaDS1Q+Q g==; X-CSE-ConnectionGUID: 2FAnSmdGQuW52f2nvPE15Q== X-CSE-MsgGUID: /0lEvJIXSdeKy63FQ44NPw== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218717" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218717" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:27 -0700 X-CSE-ConnectionGUID: iCPtDgh2Re+f2VrhfT+/4g== X-CSE-MsgGUID: VMTXgFl1TzuCpgh3VU2q4w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797563" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:25 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 07/10] ASoC: Intel: avs: rt286: Constify card_headset_pins Date: Wed, 3 Apr 2024 11:31:42 +0200 Message-Id: <20240403093145.3375857-8-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: RBM72X5CWTSO4SAGIJ2U6VC5J3AVXSAX X-Message-ID-Hash: RBM72X5CWTSO4SAGIJ2U6VC5J3AVXSAX X-MailFrom: amadeuszx.slawinski@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: card_headset_pins is never modified, mark it const. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/rt286.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/rt286.c b/sound/soc/intel/avs/boards/rt286.c index 4740bba105703..d24316fc4db9c 100644 --- a/sound/soc/intel/avs/boards/rt286.c +++ b/sound/soc/intel/avs/boards/rt286.c @@ -38,7 +38,7 @@ static const struct snd_soc_dapm_route card_base_routes[] = { {"Speaker", NULL, "SPOL"}, }; -static struct snd_soc_jack_pin card_headset_pins[] = { +static const struct snd_soc_jack_pin card_headset_pins[] = { { .pin = "Headphone Jack", .mask = SND_JACK_HEADPHONE, From patchwork Wed Apr 3 09:31:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 785445 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 D1305CD1288 for ; Wed, 3 Apr 2024 09:34:16 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 01D232C88; Wed, 3 Apr 2024 11:34:05 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 01D232C88 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1712136855; bh=YMdEHr0zD4bfppwoJREpSdpNbg1nvju3vBIFu7zwGzk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=RyB+09rYg+/hHsEmYY22d6+ALRLSIYxxDnN+MUaR5RR6EeWKhe+U/sVSCv2x8gH0a XdqK6XHng3haIUYCdjREzfpgc59bZ51ap9Fc8S6twe0/Cwq7DZbZN3X2r5BFhwOvZn vi3/zK7D5HT53ukmsWgGwL0RrK6jHZA9eLoHp1V0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5F802F806EC; Wed, 3 Apr 2024 11:31:52 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id BFF7CF806DE; Wed, 3 Apr 2024 11:31:51 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id CEC55F80607; Wed, 3 Apr 2024 11:31:36 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 3D5CEF8057D for ; Wed, 3 Apr 2024 11:31:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3D5CEF8057D Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=fqbFyRJI DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136690; x=1743672690; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YMdEHr0zD4bfppwoJREpSdpNbg1nvju3vBIFu7zwGzk=; b=fqbFyRJIBFibbhW3S5AxZT1SAu0J3kze7dza9JKxfhqIUi4snj6TaGvn NAl+G9Q6NMARb9esCqjgyjMNhIkNOgt4w6CFtv/0ZeQu60u/c00b7Ti00 +PCBC52LcpkkxSxqwxLfVm9w8QNzOdvmZvNLE/1Q7npsUhXISEjZEtbjo H5XkkkYRcI/q5rGMepmkj9sV2lqkRgA4Te/qtNc6Tq0P/0MwT7yBsLMvE ytJ6qwkA3pWRZv3/hMPr/mHwOSTIwCC26keRM25O0pR3xssLAhqnUiRvu 7UToYw95n4pb6wba/2iPtEArVrCEaW3X0sZAbsuNmzUWpMcSRkiLinL17 w==; X-CSE-ConnectionGUID: gT1JmgOYS9ar17rGElF3oA== X-CSE-MsgGUID: CZP0Zy7TQ/66LNfsMYHR1g== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218725" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218725" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:29 -0700 X-CSE-ConnectionGUID: QwRajnwCQTOeHs5ORRd2Aw== X-CSE-MsgGUID: Sa7tiJlHQdShmZNT/dNz3g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797569" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:27 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 08/10] ASoC: Intel: avs: rt298: Constify card_headset_pins Date: Wed, 3 Apr 2024 11:31:43 +0200 Message-Id: <20240403093145.3375857-9-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: 6D6B7UDMRCIDG3CTI5C75Y7CXXDLPUEB X-Message-ID-Hash: 6D6B7UDMRCIDG3CTI5C75Y7CXXDLPUEB X-MailFrom: amadeuszx.slawinski@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: card_headset_pins is never modified, mark it const. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/rt298.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/rt298.c b/sound/soc/intel/avs/boards/rt298.c index 6e409e29f6974..7fd28544f7869 100644 --- a/sound/soc/intel/avs/boards/rt298.c +++ b/sound/soc/intel/avs/boards/rt298.c @@ -49,7 +49,7 @@ static const struct snd_soc_dapm_route card_base_routes[] = { {"Speaker", NULL, "SPOL"}, }; -static struct snd_soc_jack_pin card_headset_pins[] = { +static const struct snd_soc_jack_pin card_headset_pins[] = { { .pin = "Headphone Jack", .mask = SND_JACK_HEADPHONE, From patchwork Wed Apr 3 09:31:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 785444 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 32812CD1288 for ; Wed, 3 Apr 2024 09:34:51 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 6FAF72C88; Wed, 3 Apr 2024 11:34:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6FAF72C88 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1712136889; bh=H1VHHLIXeX8Omn5DQfAV7IkeGysf9C0vnaXxHYuscy8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=jHZwEYJOmhadijWK/TRi07XYbQaASCBdk3NMRCq1J7xB703FYmuyTQZBstyx0IUA1 QKHrL3DbjdOK49n993Ze5kDVpfD0ODa1jciffdNnLoGeHIa55wRsp6pjLVtKZm9U9e ITJcEuFCujGUMZ6DCaDtweSxD3WZeapmQl2MMWuE= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 95A87F80768; Wed, 3 Apr 2024 11:31:57 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 0443AF8074E; Wed, 3 Apr 2024 11:31:57 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id EEC2DF80641; Wed, 3 Apr 2024 11:31:41 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B097DF805D9 for ; Wed, 3 Apr 2024 11:31:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B097DF805D9 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=KosinP5b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136694; x=1743672694; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=H1VHHLIXeX8Omn5DQfAV7IkeGysf9C0vnaXxHYuscy8=; b=KosinP5bLOhkVO5H7HpyPQEXLh4m7ZGipzy3Vn45SkCq0b3nCreNgvRC fcUOG/7zXW1zWpoZ5Q2lod6MKUe8bdyQaUlyZGwKGLCiqjya3+82ujTc3 nOrgMrft4MvbESVMmmZkwOlupIFoqAeg+GQUZ/bqXibkXCpjcl42j20A8 gx1tWbMNoJ2i5Q8a3vAUU+6XmR6I8BbiDAWjRy+PehJWdLw0Sz+fDxDkx UbrN69TCcmQlNPQfdHNhuvUzYInTch1v2RQJNaMXwBymarj1x0a5eBZW4 pkt/Kn15W5CZa+m9eFlraMT74FbnYEti0jBuC44c6vAqWYtcD/Jpa1Vye g==; X-CSE-ConnectionGUID: 9Ank7ftmRnmLU31NOkKiqw== X-CSE-MsgGUID: Ks+iDe2jSfSW6L3kf6frLw== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218734" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218734" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:31 -0700 X-CSE-ConnectionGUID: cid7SUMdRQ+Lf/Kd5Gi0hQ== X-CSE-MsgGUID: lPy6wLiwQIOWYrKYk2NbmA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797576" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:29 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 09/10] ASoC: Intel: avs: rt5663: Constify card_headset_pins Date: Wed, 3 Apr 2024 11:31:44 +0200 Message-Id: <20240403093145.3375857-10-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: U7XBQ7AX43LF7UAF22B3FEKZG3MEVJ3Y X-Message-ID-Hash: U7XBQ7AX43LF7UAF22B3FEKZG3MEVJ3Y X-MailFrom: amadeuszx.slawinski@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: card_headset_pins is never modified, mark it const. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/rt5663.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/rt5663.c b/sound/soc/intel/avs/boards/rt5663.c index 1880c315cc4d1..ba8c42d026da2 100644 --- a/sound/soc/intel/avs/boards/rt5663.c +++ b/sound/soc/intel/avs/boards/rt5663.c @@ -43,7 +43,7 @@ static const struct snd_soc_dapm_route card_routes[] = { { "IN1N", NULL, "Headset Mic" }, }; -static struct snd_soc_jack_pin card_headset_pins[] = { +static const struct snd_soc_jack_pin card_headset_pins[] = { { .pin = "Headphone Jack", .mask = SND_JACK_HEADPHONE, From patchwork Wed Apr 3 09:31:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 785881 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 F2ED6CD1288 for ; Wed, 3 Apr 2024 09:34:33 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 1318A2C85; Wed, 3 Apr 2024 11:34:22 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1318A2C85 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1712136872; bh=/0HwR9BeGlHT/8EimwBOYK6tvT4kTu02wjjOYw0tNGk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=mKhQ4r4E+xRcXK8VTM+0O7lfjmmOBb9trP1bzBTy30UP8IUwkzBn/FNQ4EVsU9uFC H4bu8rccIiz47UD8SQVfvCeUy8K/zDLQ9WGQj1v3nHcrCJqpTwDJU3a8w0lGRYm01F UKKiOE52j4XvGnUWcwFLCnIsDOjI+OUjqTa1l+f8= Received: by alsa1.perex.cz (Postfix, from userid 50401) id DAB4AF8071F; Wed, 3 Apr 2024 11:31:54 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 33C9EF8070D; Wed, 3 Apr 2024 11:31:54 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E0D3AF80611; Wed, 3 Apr 2024 11:31:39 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 3C8A5F805E7 for ; Wed, 3 Apr 2024 11:31:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3C8A5F805E7 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Ah6Q8iWk DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136694; x=1743672694; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/0HwR9BeGlHT/8EimwBOYK6tvT4kTu02wjjOYw0tNGk=; b=Ah6Q8iWk9yqUcD9N6QQovBW64REe1fb8r4rYay85VaP9NgancIIPEGdd ciMW1TCp9DRN9Zv6bihYAsA3Zx9n/TrKoUQY7J05yy9QXDOoEt+izrrCZ wDOExgNp+cwmPBkuG8xPowzI/SeCAXpulI3cSaUes5/zhyPPCf/184ycD Fhh95pMP9IHlQe1BT4OZm22m7e7BdeCVpXTRwYyI5/HKSDNEsYgn4gFZi 9/AAMeFLge2NJ0xsp4kWYNvPhmniJP28bSEltB3NN09yve0e6QktE+X2z Z9RJFXELEPRNXPCiTDmHctKId8ibDobh+1QywUGhyjUnG4xlb2MCanoB1 w==; X-CSE-ConnectionGUID: lI37R0hjQY+jTGIQDRxMOQ== X-CSE-MsgGUID: 3gF9g7ewSZu4rXsWmY4bMg== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218749" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218749" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:32 -0700 X-CSE-ConnectionGUID: 1zKRmFJ1R/e8oauVacYm8g== X-CSE-MsgGUID: phKU8EAhThiVGTLk/yTDvA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797585" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:31 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 10/10] ASoC: Intel: avs: rt5682: Constify card_headset_pins Date: Wed, 3 Apr 2024 11:31:45 +0200 Message-Id: <20240403093145.3375857-11-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: 2Y5X4DBRZ5FNO5I3AYSHU6KQQML35FFN X-Message-ID-Hash: 2Y5X4DBRZ5FNO5I3AYSHU6KQQML35FFN X-MailFrom: amadeuszx.slawinski@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: card_headset_pins is never modified, mark it const. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/rt5682.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/rt5682.c b/sound/soc/intel/avs/boards/rt5682.c index 594a971ded9eb..823f04dba2f76 100644 --- a/sound/soc/intel/avs/boards/rt5682.c +++ b/sound/soc/intel/avs/boards/rt5682.c @@ -80,7 +80,7 @@ static const struct snd_soc_dapm_route card_base_routes[] = { { "IN1P", NULL, "Headset Mic" }, }; -static struct snd_soc_jack_pin card_jack_pins[] = { +static const struct snd_soc_jack_pin card_jack_pins[] = { { .pin = "Headphone Jack", .mask = SND_JACK_HEADPHONE,