Skip to contentSkip to conversation

v4l2-sysfs-path: Add missing help text

PATCH New saivishnu725 1 participant 1 message Jun 23 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 v4l2-sysfs-path: Add missing help text

Add a program description to the help output. The description matches the existing README documentation to keep the documentation consistent.

---
 utils/v4l2-sysfs-path/v4l2-sysfs-path.c | 3 +++
 1 file changed, 3 insertions(+)
utils/v4l2-sysfs-path/v4l2-sysfs-path.c +3 -0
index d1ad7edb..70da5353 100644
@@ -30,6 +30,8 @@
 
 const char *argp_program_version = "v4l2-sysfs-path version " V4L_UTILS_VERSION;
 const char *argp_program_bug_address = "Mauro Carvalho Chehab <[email protected]>";
+static const char doc[] = "Tool to show relationships between V4L2 video devices \
+and other related devices belonging to the same physical device by parsing the sysfs tree.";
 
 static const struct argp_option options[] = {
 	{"device", 'd', 0, 0, "use alternative device show mode", 0},
@@ -53,6 +55,7 @@ static error_t parse_opt(int k, char *arg, struct argp_state *state)
 static struct argp argp = {
 	.options = options,
 	.parser = parse_opt,
+	.doc = doc
 };
 
 static void print_all_associated_devices(void *md, const char *vid,
Signature · 1 line
2.54.0