From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 BFD1C175A67; Wed, 27 May 2026 14:41:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779892862; cv=none; b=nbdwlUZbW083S2v3cT91OyXtmKO5QPazRNvQI2s5P1EHQynlxOndh1wAK7kmPama2460u46Jl9EVSsG2A9WxU5gB+yWp/MDA24Ieq2y1ybb4PwbZSb9QTE1WpUIj9Xo1PpxY2MW0FaLixkklH3Oavl584E0ZNIM7dFspsSfAAx4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779892862; c=relaxed/simple; bh=V3QR3jP44aqqC9ymtZ4lbbwtzZ+8iYreYhsmQlowOPU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=iHW6Dh3XrKd21dNz0pH5dUMwj8yN1SA7FeUDecWJ3+22WSQV0l8lRMRO4tikxCYNV5p9ldMoCohFuUdto9DLlUjuhXZNF9rZGsdjt0KRv4u2VmVY7OyjExfusmcg8rI/2FufbdoFcZ1LSanoUzr91QMdbZJwHsvcOiIZ5h5znmU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=zflJPWBG; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="zflJPWBG" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1779892861; x=1811428861; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=V3QR3jP44aqqC9ymtZ4lbbwtzZ+8iYreYhsmQlowOPU=; b=zflJPWBGWJVWEM/B0V3mQ0pGgnxVQ8gawPnNvA06X4G6e4Lr5hKm7uW5 P++DV2XBA5jERRmbY6SPlFLqwlno4udWnMlury0i2jMVgcKaVqiONij5F 2vsQ87TAja/aWDB0Zr54GJlbpgJ4FlrYG19qM8+c3MR2CGTi1oa7nu5SQ G2hIS+P0b0ET1V5xRkB3qn0TD4lveWxRf7RZcRTPkGmPV1Cad6pUtc8L2 oeTJZiqEHtJir1XE1xZwUjPBn+HqYmCrsSyIyE85vvMRrOVSLGZjW87Pl KlmgGgU+ZlcKb1rQuUv+Gu7DMIF9NSfotyen+k03NDISWKgFiDBNAT57q Q==; X-CSE-ConnectionGUID: H1EI0QVERrmv8Nk8ruBKDw== X-CSE-MsgGUID: e/iu+SMCS4qhbyMQGWZA4w== X-IronPort-AV: E=Sophos;i="6.24,171,1774335600"; d="scan'208";a="67002841" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2026 07:41:00 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.87.71) by chn-vm-ex2.mchp-main.com (10.10.87.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.41; Wed, 27 May 2026 07:40:59 -0700 Received: from [127.0.0.1] (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Wed, 27 May 2026 07:40:55 -0700 From: Balakrishnan Sambath Date: Wed, 27 May 2026 20:10:50 +0530 Subject: [PATCH 01/12] media: max9286: use string_choices helper Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20260527-cleanup-string-choices-media-i2c-v1-1-e8f7d2284288@microchip.com> References: <20260527-cleanup-string-choices-media-i2c-v1-0-e8f7d2284288@microchip.com> In-Reply-To: <20260527-cleanup-string-choices-media-i2c-v1-0-e8f7d2284288@microchip.com> To: Jacopo Mondi , Kieran Bingham , Laurent Pinchart , =?utf-8?q?Niklas_S=C3=B6derlund?= , Mauro Carvalho Chehab , Tim Harvey , Hans Verkuil CC: , , Balakrishnan Sambath X-Mailer: b4 0.14.3 Replace open-coded boolean-to-string ternaries with the standard helpers from . No functional change. Signed-off-by: Balakrishnan Sambath --- drivers/media/i2c/max9286.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c index ac0712ce1..e2954ed26 100644 --- a/drivers/media/i2c/max9286.c +++ b/drivers/media/i2c/max9286.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -1330,7 +1331,7 @@ static int max9286_poc_enable(struct max9286_priv *priv, bool enable) if (ret < 0) dev_err(&priv->client->dev, "Unable to turn power %s\n", - enable ? "on" : "off"); + str_on_off(enable)); return ret; } -- 2.34.1