diff mbox

keytable.c: add support for the CEC protocol

Message ID 991a08f5-40e1-e364-1400-91236c6fbeb0@xs4all.nl (mailing list archive)
State New, archived
Headers show

Commit Message

Hans Verkuil Aug. 7, 2017, 12:52 p.m. UTC
The CEC protocol wasn't known, so 'Supported protocols:' would just say
'other' instead of 'cec'.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
---

Comments

Sean Young Aug. 7, 2017, 8:22 p.m. UTC | #1
On Mon, Aug 07, 2017 at 02:52:01PM +0200, Hans Verkuil wrote:
> The CEC protocol wasn't known, so 'Supported protocols:' would just say
> 'other' instead of 'cec'.
> 
> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>

Acked-by: Sean Young <sean@mess.org>

> ---
> diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
> index 634f4561..55abfc19 100644
> --- a/utils/keytable/keytable.c
> +++ b/utils/keytable/keytable.c
> @@ -106,6 +106,7 @@ enum sysfs_protocols {
>  	SYSFS_RC6		= (1 << 10),
>  	SYSFS_SHARP		= (1 << 11),
>  	SYSFS_XMP		= (1 << 12),
> +	SYSFS_CEC		= (1 << 13),
>  	SYSFS_INVALID		= 0,
>  };
> 
> @@ -138,6 +139,7 @@ const struct protocol_map_entry protocol_map[] = {
>  	{ "rc-6-mce",	NULL,		SYSFS_INVALID	},
>  	{ "sharp",	NULL,		SYSFS_SHARP	},
>  	{ "xmp",	"/xmp_decoder",	SYSFS_XMP	},
> +	{ "cec",	NULL,		SYSFS_CEC	},
>  	{ NULL,		NULL,		SYSFS_INVALID	},
>  };
diff mbox

Patch

diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
index 634f4561..55abfc19 100644
--- a/utils/keytable/keytable.c
+++ b/utils/keytable/keytable.c
@@ -106,6 +106,7 @@  enum sysfs_protocols {
 	SYSFS_RC6		= (1 << 10),
 	SYSFS_SHARP		= (1 << 11),
 	SYSFS_XMP		= (1 << 12),
+	SYSFS_CEC		= (1 << 13),
 	SYSFS_INVALID		= 0,
 };

@@ -138,6 +139,7 @@  const struct protocol_map_entry protocol_map[] = {
 	{ "rc-6-mce",	NULL,		SYSFS_INVALID	},
 	{ "sharp",	NULL,		SYSFS_SHARP	},
 	{ "xmp",	"/xmp_decoder",	SYSFS_XMP	},
+	{ "cec",	NULL,		SYSFS_CEC	},
 	{ NULL,		NULL,		SYSFS_INVALID	},
 };