Skip to content

Commit

Permalink
[media] em28xx: Show a warning if the board does not support remote c…
Browse files Browse the repository at this point in the history
…ontrols

This simply shows a little warning if the board does not have remote
control support. This should make it easier for users to see if they
have misconfigured their system or if the driver simply does not have
rc-support for their card (yet).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Martin Blumenstingl authored and Mauro Carvalho Chehab committed Jun 18, 2012
1 parent bdca503 commit b83f671
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/video/em28xx/em28xx-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,8 @@ static int em28xx_ir_init(struct em28xx *dev)

if (dev->board.ir_codes == NULL) {
/* No remote control support */
em28xx_warn("Remote control support is not available for "
"this card.\n");
return 0;
}

Expand Down

0 comments on commit b83f671

Please sign in to comment.