[PATCH 03/12] media: tvp7002: use string_choices helper

From: Balakrishnan Sambath

Date: Wed May 27 2026 - 10:43:55 EST


Replace open-coded boolean-to-string ternaries with the standard
helpers from <linux/string_choices.h>.

No functional change.

Signed-off-by: Balakrishnan Sambath <balakrishnan.s@xxxxxxxxxxxxx>
---
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 <linux/delay.h>
#include <linux/i2c.h>
#include <linux/slab.h>
+#include <linux/string_choices.h>
#include <linux/videodev2.h>
#include <linux/module.h>
#include <linux/of.h>
@@ -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