keytable: Fix copy and paste error for SANYO IR protocol

Message ID 1326980563-8194-2-git-send-email-gjasny@googlemail.com (mailing list archive)
State Not Applicable, archived
Headers

Commit Message

Gregor Jasny Jan. 19, 2012, 1:42 p.m. UTC
  Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
---
 utils/keytable/keytable.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
  

Comments

Mauro Carvalho Chehab Jan. 19, 2012, 1:58 p.m. UTC | #1
Em 19-01-2012 11:42, Gregor Jasny escreveu:
> Signed-off-by: Gregor Jasny <gjasny@googlemail.com>

Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
> ---
>  utils/keytable/keytable.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
> index 93609d2..f03de26 100644
> --- a/utils/keytable/keytable.c
> +++ b/utils/keytable/keytable.c
> @@ -226,7 +226,7 @@ static error_t parse_keyfile(char *fname, char **table)
>  						else if (!strcasecmp(p,"sony"))
>  							ch_proto |= SONY;
>  						else if (!strcasecmp(p,"sanyo"))
> -							ch_proto |= SONY;
> +							ch_proto |= SANYO;
>  						else if (!strcasecmp(p,"other") || !strcasecmp(p,"unknown"))
>  							ch_proto |= OTHER;
>  						else {

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
  

Patch

diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
index 93609d2..f03de26 100644
--- a/utils/keytable/keytable.c
+++ b/utils/keytable/keytable.c
@@ -226,7 +226,7 @@  static error_t parse_keyfile(char *fname, char **table)
 						else if (!strcasecmp(p,"sony"))
 							ch_proto |= SONY;
 						else if (!strcasecmp(p,"sanyo"))
-							ch_proto |= SONY;
+							ch_proto |= SANYO;
 						else if (!strcasecmp(p,"other") || !strcasecmp(p,"unknown"))
 							ch_proto |= OTHER;
 						else {