From patchwork Tue Feb 4 15:33:32 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thorsten Blum X-Patchwork-Id: 13959361 Received: from out-181.mta1.migadu.com (out-181.mta1.migadu.com [95.215.58.181]) (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 A8C6525A659 for ; Tue, 4 Feb 2025 15:34:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738683248; cv=none; b=eyfq6/MVSrGQFtl5+UZSy0G4DrpnXH5lqf7bLF7Yp0r3nE++Pq2i5wNDvvBDljxOnJJmZ919O3ZtrHSdkTG+RabE07wcGQAgL9hMI8MDf6drih1QV6OaZHr4ERpW4BcUYftkdiyGBYr8zN7qh2f+Fkb9wZs6NFiaQyI8LBgnGN4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738683248; c=relaxed/simple; bh=VLMW/rKngckff43zklXzalVdgigJaUPwsmm6BS8phrg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jPZyy/IJ1LFvxVo2H5iiXAHvmGETbxkirVwhgnGpZtwGiCAGw3tB/Nez3URYQNFpA716io8H6hdcgiCqyoWRJuVGuaiiL4n/XIo7oehLvmFwizYydIwVDmo+Xx70yjB6N1TQZCx/fcb1lmfvkTBOHNYJ4/oipK9wFmvnqSemME8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=X9y7nCc9; arc=none smtp.client-ip=95.215.58.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="X9y7nCc9" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1738683243; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=AV7Kl1dUZpnbGIRCqNtPeYJtm97lNu4F+MxRiMNeYbU=; b=X9y7nCc9gJsgHVRO4dFndjl7mdvYtq/C1SAuHY/mGQE8LmEcBq0Yy0cZC2M3yI4XuK8Rz7 9wvpDvxVrw1/QD/N5U3uITI7JS5emPExHU+qoXId1DjI1fEd+OKqp3ystzvvdVmheXBbgr aTyaz/RMXW10L7ybAviw0gkaioevx+A= From: Thorsten Blum To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: Thorsten Blum , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: amd: acp: Use str_low_high() helper function Date: Tue, 4 Feb 2025 16:33:32 +0100 Message-ID: <20250204153333.3045-3-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Remove hard-coded strings by using the str_low_high() helper function. Signed-off-by: Thorsten Blum --- sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c b/sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c index 2b0aa270a3e9..eb5d4a5baef2 100644 --- a/sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c +++ b/sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "../acp-mach.h" #include "acp3x-es83xx.h" @@ -241,9 +242,9 @@ static int acp3x_es83xx_configure_gpios(struct acp3x_es83xx_private *priv) dev_info(priv->codec_dev, "speaker gpio %d active %s, headphone gpio %d active %s\n", priv->enable_spk_gpio.crs_entry_index, - priv->enable_spk_gpio.active_low ? "low" : "high", + str_low_high(priv->enable_spk_gpio.active_low), priv->enable_hp_gpio.crs_entry_index, - priv->enable_hp_gpio.active_low ? "low" : "high"); + str_low_high(priv->enable_hp_gpio.active_low)); return 0; }