Linux Kernel Mailing List | 26 Jun 2012 00:04

[media] em28xx: Show a warning if the board does not support remote controls

Gitweb:     http://git.kernel.org/linus/;a=commit;h=b83f671566f8a3b9796bed7416d25e07866ff408
Commit:     b83f671566f8a3b9796bed7416d25e07866ff408
Parent:     bdca5036332311bea183dc628c69e3cb50a9369e
Author:     Martin Blumenstingl <martin.blumenstingl <at> googlemail.com>
AuthorDate: Wed May 30 15:47:40 2012 -0300
Committer:  Mauro Carvalho Chehab <mchehab <at> redhat.com>
CommitDate: Mon Jun 18 11:25:20 2012 -0300

    [media] em28xx: Show a warning if the board does not support remote controls

    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 <at> googlemail.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab <at> redhat.com>
---
 drivers/media/video/em28xx/em28xx-input.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/em28xx/em28xx-input.c b/drivers/media/video/em28xx/em28xx-input.c
index fce5f76..5e30c4f 100644
--- a/drivers/media/video/em28xx/em28xx-input.c
+++ b/drivers/media/video/em28xx/em28xx-input.c
 <at>  <at>  -527,6 +527,8  <at>  <at>  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;
 	}

--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Gmane