netdev
[Top] [All Lists]

[PATCH] via-velocity: convert to module_param

To: Jeff Garzik <jgarzik@xxxxxxxxx>
Subject: [PATCH] via-velocity: convert to module_param
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Mon, 29 Nov 2004 09:40:32 -0800
Cc: netdev@xxxxxxxxxxx
Organization: Open Source Development Lab
Sender: netdev-bounce@xxxxxxxxxxx
Convert via-velocity driver to module_param.

Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxx>

diff -Nru a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c
--- a/drivers/net/via-velocity.c        2004-11-29 09:39:10 -08:00
+++ b/drivers/net/via-velocity.c        2004-11-29 09:39:10 -08:00
@@ -100,8 +100,8 @@
 MODULE_DESCRIPTION("VIA Networking Velocity Family Gigabit Ethernet Adapter 
Driver");
 
 #define VELOCITY_PARAM(N,D) \
-        static const int N[MAX_UNITS]=OPTION_DEFAULT;\
-        MODULE_PARM(N, "1-" __MODULE_STRING(MAX_UNITS) "i");\
+        static int N[MAX_UNITS]=OPTION_DEFAULT;\
+       module_param_array(N, int, NULL, 0); \
         MODULE_PARM_DESC(N, D);
 
 #define RX_DESC_MIN     64
@@ -229,7 +229,7 @@
 VELOCITY_PARAM(int_works, "Number of packets per interrupt services");
 
 static int rx_copybreak = 200;
-MODULE_PARM(rx_copybreak, "i");
+module_param(rx_copybreak, int, 0644);
 MODULE_PARM_DESC(rx_copybreak, "Copy breakpoint for copy-only-tiny-frames");
 
 static void velocity_init_info(struct pci_dev *pdev, struct velocity_info 
*vptr, struct velocity_info_tbl *info);

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] via-velocity: convert to module_param, Stephen Hemminger <=