[17/17] DVB:Siano drivers - Automatically load client modules to make easier usage of device

Message ID 1316514727.5199.95.camel@Doron-Ubuntu (mailing list archive)
State Rejected, archived
Headers

Commit Message

Doron Cohen Sept. 20, 2011, 10:32 a.m. UTC
  Hi,
This patch step makes Automatically load client modules to make easier
usage of device
Thanks,
Doron Cohen

-----------------------
From 82afa26fc1fb9db798e46de0c55b49fd1bda9580 Mon Sep 17 00:00:00 2001
From: Doron Cohen <doronc@siano-ms.com>
Date: Tue, 20 Sep 2011 09:39:02 +0300
Subject: [PATCH 21/21] Automatically load client modules to make easier
usage of device

---
 drivers/media/dvb/siano/sms-cards.c |   17 ++++-------------
 1 files changed, 4 insertions(+), 13 deletions(-)

--
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
  

Comments

Mauro Carvalho Chehab Sept. 23, 2011, 10:51 p.m. UTC | #1
Em 20-09-2011 07:32, Doron Cohen escreveu:
> Hi,
> This patch step makes Automatically load client modules to make easier
> usage of device

Ok.

> Thanks,
> Doron Cohen
> 
> -----------------------
>>From 82afa26fc1fb9db798e46de0c55b49fd1bda9580 Mon Sep 17 00:00:00 2001
> From: Doron Cohen <doronc@siano-ms.com>
> Date: Tue, 20 Sep 2011 09:39:02 +0300
> Subject: [PATCH 21/21] Automatically load client modules to make easier
> usage of device
> 
> ---
>  drivers/media/dvb/siano/sms-cards.c |   17 ++++-------------
>  1 files changed, 4 insertions(+), 13 deletions(-)
> 
> diff --git a/drivers/media/dvb/siano/sms-cards.c
> b/drivers/media/dvb/siano/sms-cards.c
> index 66b302e..378c25d 100644
> --- a/drivers/media/dvb/siano/sms-cards.c
> +++ b/drivers/media/dvb/siano/sms-cards.c
> @@ -458,19 +458,10 @@ EXPORT_SYMBOL_GPL(sms_board_lna_control);
>  
>  int sms_board_load_modules(int id)
>  {
> -	switch (id) {
> -	case SMS1XXX_BOARD_HAUPPAUGE_CATAMOUNT:
> -	case SMS1XXX_BOARD_HAUPPAUGE_OKEMO_A:
> -	case SMS1XXX_BOARD_HAUPPAUGE_OKEMO_B:
> -	case SMS1XXX_BOARD_HAUPPAUGE_WINDHAM:
> -	case SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD:
> -	case SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD_R2:
> -		request_module("smsdvb");
> -		break;
> -	default:
> -		/* do nothing */
> -		break;
> -	}
> +	/* Siano smsmdtv loads all other supported "client" modules*/
> +	request_module("smsdvb");
>  	return 0;
>  }
>  EXPORT_SYMBOL_GPL(sms_board_load_modules);

--
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/drivers/media/dvb/siano/sms-cards.c
b/drivers/media/dvb/siano/sms-cards.c
index 66b302e..378c25d 100644
--- a/drivers/media/dvb/siano/sms-cards.c
+++ b/drivers/media/dvb/siano/sms-cards.c
@@ -458,19 +458,10 @@  EXPORT_SYMBOL_GPL(sms_board_lna_control);
 
 int sms_board_load_modules(int id)
 {
-	switch (id) {
-	case SMS1XXX_BOARD_HAUPPAUGE_CATAMOUNT:
-	case SMS1XXX_BOARD_HAUPPAUGE_OKEMO_A:
-	case SMS1XXX_BOARD_HAUPPAUGE_OKEMO_B:
-	case SMS1XXX_BOARD_HAUPPAUGE_WINDHAM:
-	case SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD:
-	case SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD_R2:
-		request_module("smsdvb");
-		break;
-	default:
-		/* do nothing */
-		break;
-	}
+	/* Siano smsmdtv loads all other supported "client" modules*/
+	request_module("smsdvb");
 	return 0;
 }
 EXPORT_SYMBOL_GPL(sms_board_load_modules);
-- 
1.7.4.1