Message ID | 20221018152928.942186-1-colin.i.king@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp2021894wrs; Tue, 18 Oct 2022 08:32:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4BgeM3unDE3/37dRnmqSzAU2wIFyeKLXPOa4Vs+urVXOwbuteQx6/VeB/Id9oGotvAtzeA X-Received: by 2002:a17:907:7635:b0:78d:c5e9:3e57 with SMTP id jy21-20020a170907763500b0078dc5e93e57mr2969088ejc.204.1666107171101; Tue, 18 Oct 2022 08:32:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666107171; cv=none; d=google.com; s=arc-20160816; b=xwEZ2MoHKQLQvaXephdjw8hxfSbJi1r/Js5seVYeSQx3R5sTZ/DO3JXyjpn2u86wHK QZUe97JqH6KM+cPM8AHvei7WQ0vdS/ob83uBNJ6nDhRRnfGib+Zv7jWB1sXQDFlghhcg Xf/CViyFExlBkQYwCynqxNCuQnOpvUNeTIKlu/HzDqLoczIAQUq+2sSBEUBf+FEEkfSH Wlcs00I/3O223EiDVLUvJzuAaMHCJLqEptx9L/6lFA9eHwk3WKFQNZhkS7+pTEuznLhG jWOh4DyWYcImWvlhhAFVRyDyNOy+A36MdhoDLkPm8X1Xh+e4SryYY9luzth9C1x05A1p Vzuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=OcUgEYWsogjtXYmjJAjt9KOoJyA65cec5okYPWW3wOI=; b=Cyj1x/EisbruzSIWzr5cGryWUdSgQzL0C53e4fFoQEQy3YH4SPZvTrPy0n/dnrkl2a MEQmWEl5m0v0NrQIRUza2v+9tPr6Z6cc2kfQCnddEgy+6X7L4YRqSYDcB7/Ed9IXt1Vv RICBrO2jtDJfXfQydbcpCemdnXtJx2L329dLhNL0RqX6JWvjjhq9AeIcm0chySB6kBL9 qYPQLJMG1/MObJ/mWKjgz5Xm+7dbyYNAs/3qN5Uct+sbi90V2HdWq6h9gpjL3kCUa5DI wW3NPZVg938LG6PEv5dAosFu7y/W39L76V1dseKCqR3m6gwlvUTGzT0yBZevgPYSNA8S dPIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EIqT9tBy; 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=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y19-20020a056402271300b0045d9a3adf19si5818216edd.564.2022.10.18.08.32.20; Tue, 18 Oct 2022 08:32:51 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=EIqT9tBy; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230381AbiJRPaC (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Tue, 18 Oct 2022 11:30:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231124AbiJRP3z (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 18 Oct 2022 11:29:55 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4AC6DFE3; Tue, 18 Oct 2022 08:29:31 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id bp11so24124201wrb.9; Tue, 18 Oct 2022 08:29:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=OcUgEYWsogjtXYmjJAjt9KOoJyA65cec5okYPWW3wOI=; b=EIqT9tBypYZiETkmd/KQhtgcdgf36aQXJriK/p4+mskN6WYba67CXLYKnXPkn7qaiW wZWEe6qt5/H/NfL0eTY6FEHeq8g06oTKMpehMKMkUHBrm/YTOkA1xmofn2wyR5nWkjv2 hzhlmYqYOcHKM5+QxiVgGzjo/cdQUVv53geXwRgJTpxE4r7nwggD4pdzB5EM3G+7DkvA oqT3sUGzfdkonHCWtZ+DuH5cFCFGxMsfBrq167jelkmbEvrD16dXTQvtj//LtfcW3lVu foeJoeB7s9mGxfXO1FxOPGoT2ElhRfUae0le/PIihAZZnYXnpVzaSaM0ffDtnRuujYJ3 63JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OcUgEYWsogjtXYmjJAjt9KOoJyA65cec5okYPWW3wOI=; b=RZKwaJn4L/9V3nuKT0nMsoy5ydSI/TT4ldvglGAdmqCqeIRpyyXUu4Mvmddpodd6wl DxOmB/ElRk/59lC8NI3Oo6ZVtJMtxP/5QD9Xc6SFzHCqMbcOZE9+DpGv5gfnX4C7/Pt7 CY5OOrwaH3LPKkAkp/1cES+GQELVRgmiOrDlZNMSfTZjDHNzitMsoFSoHxXSyyn4BChh knJgfJRArMiba8xfFNvXvfw5EiwOoCLFNAKrOEyuqTKGjSfrZPv2doE2k68QGNP4m+u2 cRZkS0FrkToSOuZaoNSu/cXxgECCLfohbCewmcI/QFihB7bdDCmEs1y2kKRKOOB2awin aHqA== X-Gm-Message-State: ACrzQf1n9nK4laPBJdUXnggt6SDO5altgAQmqSWAoRPO3JdwsQKJ/mbi Q26I3x/xvhMM9EKptJAL6PA= X-Received: by 2002:a5d:5a11:0:b0:22e:3ed1:e426 with SMTP id bq17-20020a5d5a11000000b0022e3ed1e426mr2254890wrb.642.1666106969765; Tue, 18 Oct 2022 08:29:29 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id x6-20020a5d54c6000000b0022e2c38f8basm11194074wrv.14.2022.10.18.08.29.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 08:29:29 -0700 (PDT) From: Colin Ian King <colin.i.king@gmail.com> To: Peter Ujfalusi <peter.ujfalusi@gmail.com>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, alsa-devel@alsa-project.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: twl4030: make read-only array ramp_base static const Date: Tue, 18 Oct 2022 16:29:28 +0100 Message-Id: <20221018152928.942186-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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_NONE,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?1747039993081830376?= X-GMAIL-MSGID: =?utf-8?q?1747039993081830376?= |
Series |
ASoC: twl4030: make read-only array ramp_base static const
|
|
Commit Message
Colin Ian King
Oct. 18, 2022, 3:29 p.m. UTC
Don't populate the read-only array ramp_base on the stack but
instead make it static const. Also makes the object code a
little smaller.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
sound/soc/codecs/twl4030.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Comments
On Tue, 18 Oct 2022 16:29:28 +0100, Colin Ian King wrote: > Don't populate the read-only array ramp_base on the stack but > instead make it static const. Also makes the object code a > little smaller. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: twl4030: make read-only array ramp_base static const commit: 67860d2a8e0db7783f680f6f1c1600ed34ed3a97 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index e48768233e20..9c50ac356c89 100644 --- a/sound/soc/codecs/twl4030.c +++ b/sound/soc/codecs/twl4030.c @@ -700,8 +700,10 @@ static void headset_ramp(struct snd_soc_component *component, int ramp) struct twl4030_priv *twl4030 = snd_soc_component_get_drvdata(component); struct twl4030_board_params *board_params = twl4030->board_params; /* Base values for ramp delay calculation: 2^19 - 2^26 */ - unsigned int ramp_base[] = {524288, 1048576, 2097152, 4194304, - 8388608, 16777216, 33554432, 67108864}; + static const unsigned int ramp_base[] = { + 524288, 1048576, 2097152, 4194304, + 8388608, 16777216, 33554432, 67108864 + }; unsigned int delay; hs_gain = twl4030_read(component, TWL4030_REG_HS_GAIN_SET);