From patchwork Fri Jun 30 14:27:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 114740 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10419337vqr; Fri, 30 Jun 2023 07:41:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4kja1XriF/M0ViimVSGxqDVSP2aUTxGNLGzDDIMWiREvdCTIiMCprcWwNVR+JNBd8U3ucc X-Received: by 2002:a05:6870:6b0c:b0:1b0:7f57:1e28 with SMTP id mt12-20020a0568706b0c00b001b07f571e28mr3363801oab.11.1688136080196; Fri, 30 Jun 2023 07:41:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688136080; cv=none; d=google.com; s=arc-20160816; b=N5CGUUqJje+pw7RjMHtgST69ZfiEInOCurU12bimFC9USZQkKqQREsGrqC+ONhcTgd +oHYa02OptsGVClBaiYjiGHUaR3V4Hh5BT3l7WR+wPoTKF9tRS0OO0zUapbFQOSNOs7O 0YPHESrRIGWSrRWqtw1+5JrQ9VDfGb4lW69bVb24VI7RtOelZeKvpjV5WyuIidla7LPR B4a2wARgz/uQBjpUFMtgAfIsiFtBLFq2bZtgYop1Q0wvbN4lo0INqU1PzV8alU/MAudh ZF35A6I7GFsMiNNZB52uijw1D+pf+9G+I/wWzLW5vUCgOo/qs09jTOxoxzrnFNEbgWv5 WJ9w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vWU2JMRJaGve+eD+XZyjVG4sjh/xuLGVp1jgR1xkszQ=; fh=0TkepFmYXz4U6PH+EYFSuuWUUWn95KEjZbqs8NbnrCg=; b=R28O3y1TZkjRNhdk+vhMO5HB/rMeQ7rKEGs5SC9i/3DHnXqqUrJGcvXCdz/9Nvi5V5 IRWS7keQvbcG8mA8ZBaQiPoVfdGigncLzdQ4okdJObO9KLrfN5Z46PF9XDk4Sw0Qv1jN S2nazsFvqiWj31R/opQQzk8T7CCg4Hfd07dkAH0R6Ho/XfohxCDg9m/ekuY+qWcX5sTC p+3G2c3Lf4+7O6FdeCHa4gUrOPSkilXsABoAZmfeBtTds7bTpgdnlp7ofCPueWnFLAzb zmrVf9aE55vxcrlllcxoZNjKmbQTG+yo8WGv6YF2dq9jWMdkcoDZCqDyKCvKkvJDF9F6 DZOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EEH5d8nm; 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=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 13-20020a17090a08cd00b00263355e8183si5460194pjn.114.2023.06.30.07.41.05; Fri, 30 Jun 2023 07:41:20 -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=@kernel.org header.s=k20201202 header.b=EEH5d8nm; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232002AbjF3O1b (ORCPT + 99 others); Fri, 30 Jun 2023 10:27:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbjF3O1U (ORCPT ); Fri, 30 Jun 2023 10:27:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D43E135AF for ; Fri, 30 Jun 2023 07:27:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4BF5A61763 for ; Fri, 30 Jun 2023 14:27:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB908C433CA; Fri, 30 Jun 2023 14:27:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688135238; bh=PQzafQPINWzNCKfU5qAbB7q39zv1fe5dtlRulHQmlWU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EEH5d8nmZCFHaRW8Qfwvrw5eNUf+1b2fNeJWl2yEjsEaYvYJH0AzcfYcAfP2rHAe7 sBLFMDTvsOaXYOYCudL0iFFfRwKwwgEXgrlXqC4nG23beyJK+aJUOXQInbZy20Tle5 3YUWnL39h1Q68uJzcvO+S1WxjG+0y392YKXRo15u8y2hZOIFBW06lIlUlIb2LG2IQ9 W66LzIPVxrsK2xDEh2qvjNdaP89h+TF+u9CzC9JRo7aRyQS0XBnFMVTYed/WyuGWvY z+I1c8vDDYWSksfECI0r9E/HS6Sk+9WKQ4ZbhU2M8AVAK243u3Gkw4DgxlGC3YjOaz uQ4eGCn4tJXjw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1qFF5p-0001OQ-BJ; Fri, 30 Jun 2023 16:27:25 +0200 From: Johan Hovold To: Mark Brown , Srinivas Kandagatla Cc: Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 2/5] ASoC: codecs: wcd938x: drop inline keywords Date: Fri, 30 Jun 2023 16:27:14 +0200 Message-Id: <20230630142717.5314-3-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20230630142717.5314-1-johan+linaro@kernel.org> References: <20230630142717.5314-1-johan+linaro@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770138978089647873?= X-GMAIL-MSGID: =?utf-8?q?1770138978089647873?= The compiler is generally better at deciding what functions should be inlined than driver authors are. Drop the bogus inline keyword from two functions that were neither very small or used in a single place. Signed-off-by: Johan Hovold --- sound/soc/codecs/wcd938x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index b8a52a1a63d5..5ce15b622a91 100644 --- a/sound/soc/codecs/wcd938x.c +++ b/sound/soc/codecs/wcd938x.c @@ -2124,7 +2124,7 @@ static int wcd938x_mbhc_micb_ctrl_threshold_mic(struct snd_soc_component *compon return wcd938x_mbhc_micb_adjust_voltage(component, micb_mv, MIC_BIAS_2); } -static inline void wcd938x_mbhc_get_result_params(struct wcd938x_priv *wcd938x, +static void wcd938x_mbhc_get_result_params(struct wcd938x_priv *wcd938x, s16 *d1_a, u16 noff, int32_t *zdet) { @@ -2231,8 +2231,8 @@ static void wcd938x_mbhc_zdet_ramp(struct snd_soc_component *component, *zr = zdet; } -static inline void wcd938x_wcd_mbhc_qfuse_cal(struct snd_soc_component *component, - int32_t *z_val, int flag_l_r) +static void wcd938x_wcd_mbhc_qfuse_cal(struct snd_soc_component *component, + int32_t *z_val, int flag_l_r) { s16 q1; int q1_cal;