From patchwork Thu Feb 20 12:01:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thorsten Blum X-Patchwork-Id: 13983867 Received: from out-178.mta1.migadu.com (out-178.mta1.migadu.com [95.215.58.178]) (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 3163B1F543F for ; Thu, 20 Feb 2025 12:01:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740052915; cv=none; b=kdAW3zTi4AANmHkOYd/cmgiRpv63vna0OgC0cutsar39G2RFDeVViJ/PSsSj4F+Up4bPo1MSfh+iXmZKHRWYO+/2hslEg0EJGAj94EhObA5HtXwyvo9lGMFOfPTRyLp6Z6ui0yGxy27XErZndRk4M9yWgAeYSy863wePym1M9mc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740052915; c=relaxed/simple; bh=+cjoYnPhl7go8vNPd0AzCZxrUj9Vc0ZTGF3CSggyUh0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HBrcGzPncogHvyjhFe2JLEnXzDNrrlA9blri0hk32CmQu64yTBziwVYt+NHZu24XfVWKSoKcdF+aYzlzoVS8jkZL6NTIjZ36jmCxTRlzzH/om4ktVQUdwMs24rzALHiKSzezqlJbCtO56/QlrKBnIxhlL0O5TuykT97N0eKgARE= 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=aAkr6XlP; arc=none smtp.client-ip=95.215.58.178 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="aAkr6XlP" 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=1740052901; 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=mgkXS4965mRZXXmxJJl0d53HLCngL7V5dDdxIELeblI=; b=aAkr6XlP1qCgm2YwlGLBOsB7XXQ63mlMaWwlaKKe7XtPkaA19Ubno4hqmG2U+bYqU+l/z0 8185mxXHilAly9FBeTi/yObE8+N3ehEnbV431B/rBWMSa8UckbA97vEQgpyq510orKL2V3 WOvhw2Cxr/YjgXgHIN8oxyTS2yN6qYg= From: Thorsten Blum To: Cheng-Yi Chiang , Tzung-Bi Shih , Guenter Roeck , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Benson Leung Cc: Thorsten Blum , chrome-platform@lists.linux.dev, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: cros_ec_codec: Use str_enable_disable() helper in wov_enable_put() Date: Thu, 20 Feb 2025 13:01:01 +0100 Message-ID: <20250220120100.1530-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: chrome-platform@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Remove hard-coded strings by using the str_enable_disable() helper function. Signed-off-by: Thorsten Blum Acked-by: Tzung-Bi Shih --- sound/soc/codecs/cros_ec_codec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/cros_ec_codec.c b/sound/soc/codecs/cros_ec_codec.c index 11e7b3f6d410..571222ec520c 100644 --- a/sound/soc/codecs/cros_ec_codec.c +++ b/sound/soc/codecs/cros_ec_codec.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -657,7 +658,7 @@ static int wov_enable_put(struct snd_kcontrol *kcontrol, (uint8_t *)&p, sizeof(p), NULL, 0); if (ret) { dev_err(priv->dev, "failed to %s wov\n", - enabled ? "enable" : "disable"); + str_enable_disable(enabled)); return ret; }