From patchwork Sat Feb 22 22:59:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thorsten Blum X-Patchwork-Id: 13986869 Received: from out-176.mta0.migadu.com (out-176.mta0.migadu.com [91.218.175.176]) (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 A9AC01A2397 for ; Sat, 22 Feb 2025 23:00:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740265234; cv=none; b=BxcL11ijDUCo9hCbJhlZIM+oPhZYrR5EA0PkJ5N7zOsRcIYn1blH30GhrUWEt+Z1jSxQmltlVL6qhaXPfpIM20g2ZBORh72BRDWYJ4J8wmvUVgJ6noE0xC/Q+h5hf4WuuQfubxS5dW7Xz3zwBCtYuNlB2uDg92RP4l/RCxZkZyQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740265234; c=relaxed/simple; bh=weyJQCCpqnRXieyV4rRzTMb3+DBN8uIOV9pPVLVw0Sg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OqA15o+8THl+7C4SuCpKfi+Ge2QRrstsuxkJSyMFaks5qTtcB3mtNnf3Y3FGbYB75VK8JYf6S7BVtAPmd4/xOm3QFmpTtbQU0JPykl8p/YShvRnEwqSKBCKxt2dl9Ce0H4NkDarkMEIQoRrlInsh1sqXARrRkOyuA3FsaujJVN0= 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=Z1JaS5f7; arc=none smtp.client-ip=91.218.175.176 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="Z1JaS5f7" 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=1740265230; 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=G/zujhcm9qd+jkKX4xcD1vV7CqxNf3l6ZPiM36RzLDU=; b=Z1JaS5f7UPGwX9kTebeq3QY6oV24hx5IwxxaqoqwtVPpu4G55btBgGjGq5bqlC9laFdrd8 5DlmI7ebFewcMd8pgO+Plf9OEAoT4lxcAK93kUPLpIwbw/onh5yo8qvLjZXwWbuUeiPAmH 2p2uuA8+bUxAANaT7beT60Whgk4GU4A= From: Thorsten Blum To: Claudiu Beznea , Andrei Simion , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Nicolas Ferre , Alexandre Belloni Cc: Thorsten Blum , linux-sound@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: atmel: atmel-classd: Use str_enabled_disabled() helper Date: Sat, 22 Feb 2025 23:59:25 +0100 Message-ID: <20250222225925.539840-2-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_enabled_disabled() helper function. Signed-off-by: Thorsten Blum --- sound/soc/atmel/atmel-classd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel/atmel-classd.c index ba314b279919..1f8c60d2de82 100644 --- a/sound/soc/atmel/atmel-classd.c +++ b/sound/soc/atmel/atmel-classd.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -275,7 +276,7 @@ static int atmel_classd_component_probe(struct snd_soc_component *component) dev_info(component->dev, "PWM modulation type is %s, non-overlapping is %s\n", pwm_type[pdata->pwm_type], - pdata->non_overlap_enable?"enabled":"disabled"); + str_enabled_disabled(pdata->non_overlap_enable)); return 0; }