[PATCH 32/45] media: i2c: tvp7002: Use string_choices helpers
Ricardo Ribalda
ribalda at chromium.org
Mon Sep 30 22:04:27 AEST 2024
The following cocci warning is fixed:
drivers/media/i2c/tvp7002.c:775:5-22: opportunity for str_yes_no(device -> streaming)
Signed-off-by: Ricardo Ribalda <ribalda at chromium.org>
---
drivers/media/i2c/tvp7002.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/i2c/tvp7002.c b/drivers/media/i2c/tvp7002.c
index c09a5bd71fd0..2acf93a90c34 100644
--- a/drivers/media/i2c/tvp7002.c
+++ b/drivers/media/i2c/tvp7002.c
@@ -772,7 +772,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.46.1.824.gd892dcdcdd-goog
More information about the Linux-aspeed
mailing list