From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 83D74400E19; Wed, 27 May 2026 14:41:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779892870; cv=none; b=LmCoTisZNdm0QVYazNX8GBfbIUOXWlo9SOROS7FLJQidaeJBw3jPyjmL6WoP7dQ+wq7sFBeFpgySbNYnuRpf3leUcwNiZ6NshBj2O+Sp3K+pbLMea4S3L+sS1lT6MkIF1T2mKCc4FRAhfqbt0zP01GDnl6SJ4Ig1ScUKwMg8Kwo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779892870; c=relaxed/simple; bh=56TZVMmwQ350rP+Hhihbq5MeeuCza3ba16eSGAAbTUQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=rqLGAIvjOJ67gW15dQYgdkz2nkq9QEwxAvGnkIkLW3AgWD2rGN4oCgsgC/ewGoHTv5GtJBQZf7tTgIJK4GWct57/r1c0QGF76Z93hskYUhobtkJKkLRqiS+ulbGkbJpn2BS7WMW4TeZE7E3UMlNnwyntz8x3VLSsuNVnDSixAoU= 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=VsgYminU; arc=none smtp.client-ip=68.232.154.123 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="VsgYminU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1779892869; x=1811428869; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=56TZVMmwQ350rP+Hhihbq5MeeuCza3ba16eSGAAbTUQ=; b=VsgYminUQKyz7KYz9Xvn5Magt9TWBmLMnrYiMZr42rZoa86XGaoIHs3L 1c+Fqm6gdAE363xBudaF0YxeyL/iFTFZxNRhQAWbs5h6VdB6gXfMiBKka PLti2SMZ2pOEMH9dhBV4B29Ai70TY27IDyswrTRA3Q8XQQK/UybMTLvJ8 Bacmr5zdgOficpi4L/xMn3W0hHQoGz2LSqoO90QljDC5Yrgi6lgwLmVbW IKOtcHLzsa21uwbfQruhR4FBQzXJS4F/3AkuUIPVE95e7FPB4983bpJvh GmSYZVohel4F+AkKoO1BukSfcByLFvndKrnvjDBWVBfPqXC6nmaUfRS2O w==; X-CSE-ConnectionGUID: IGAoKRODQneZmtxPcp4fiA== X-CSE-MsgGUID: hbxYEbFcSGSKBcRvIA5RVQ== X-IronPort-AV: E=Sophos;i="6.24,171,1774335600"; d="scan'208";a="225365653" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2026 07:41:08 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.87.71) by chn-vm-ex1.mchp-main.com (10.10.87.30) 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:41:08 -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:41:04 -0700 From: Balakrishnan Sambath Date: Wed, 27 May 2026 20:10:52 +0530 Subject: [PATCH 03/12] media: tvp7002: 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-3-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/tvp7002.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/tvp7002.c b/drivers/media/i2c/tvp7002.c index 3979ccde5..fba668a60 100644 --- a/drivers/media/i2c/tvp7002.c +++ b/drivers/media/i2c/tvp7002.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -772,7 +773,7 @@ static int tvp7002_log_status(struct v4l2_subdev *sd) bt->width, bt->height); } v4l2_info(sd, "Streaming enabled: %s\n", - device->streaming ? "yes" : "no"); + str_yes_no(device->streaming)); /* Print the current value of the gain control */ v4l2_ctrl_handler_log_status(&device->hdl, sd->name); -- 2.34.1