aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2007-10-14 14:35:20 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-14 15:41:51 -0400
commit64b33619a30ff18c1535ee779572ecffcc4711d2 (patch)
tree742db1890a5671d105eba372b78c7d383607ffe6 /drivers/net
parent0cc0844bc6d0bfca97fda48fa28d1f0a7cf878cb (diff)
long vs. unsigned long - low-hanging fruits in drivers
deal with signedness of the stuff passed to set_bit() et.al. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ni65.c2
-rw-r--r--drivers/net/wan/cosa.c4
-rw-r--r--drivers/net/wireless/hostap/hostap_wlan.h2
-rw-r--r--drivers/net/wireless/ray_cs.h4
4 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ni65.c b/drivers/net/ni65.c
index 097685245112..3edc971d0eca 100644
--- a/drivers/net/ni65.c
+++ b/drivers/net/ni65.c
@@ -183,7 +183,7 @@ static struct card {
183 short addr_offset; 183 short addr_offset;
184 unsigned char *vendor_id; 184 unsigned char *vendor_id;
185 char *cardname; 185 char *cardname;
186 long config; 186 unsigned long config;
187} cards[] = { 187} cards[] = {
188 { 188 {
189 .id0 = NI65_ID0, 189 .id0 = NI65_ID0,
diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c
index 26058b4f8f36..ff37bf437a99 100644
--- a/drivers/net/wan/cosa.c
+++ b/drivers/net/wan/cosa.c
@@ -154,8 +154,8 @@ struct cosa_data {
154 int nchannels; /* # of channels on this card */ 154 int nchannels; /* # of channels on this card */
155 int driver_status; /* For communicating with firmware */ 155 int driver_status; /* For communicating with firmware */
156 int firmware_status; /* Downloaded, reseted, etc. */ 156 int firmware_status; /* Downloaded, reseted, etc. */
157 long int rxbitmap, txbitmap; /* Bitmap of channels who are willing to send/receive data */ 157 unsigned long rxbitmap, txbitmap;/* Bitmap of channels who are willing to send/receive data */
158 long int rxtx; /* RX or TX in progress? */ 158 unsigned long rxtx; /* RX or TX in progress? */
159 int enabled; 159 int enabled;
160 int usage; /* usage count */ 160 int usage; /* usage count */
161 int txchan, txsize, rxsize; 161 int txchan, txsize, rxsize;
diff --git a/drivers/net/wireless/hostap/hostap_wlan.h b/drivers/net/wireless/hostap/hostap_wlan.h
index c27b2c1c06af..e6516a186d0e 100644
--- a/drivers/net/wireless/hostap/hostap_wlan.h
+++ b/drivers/net/wireless/hostap/hostap_wlan.h
@@ -661,7 +661,7 @@ struct local_info {
661#define HOSTAP_BITS_TRANSMIT 0 661#define HOSTAP_BITS_TRANSMIT 0
662#define HOSTAP_BITS_BAP_TASKLET 1 662#define HOSTAP_BITS_BAP_TASKLET 1
663#define HOSTAP_BITS_BAP_TASKLET2 2 663#define HOSTAP_BITS_BAP_TASKLET2 2
664 long bits; 664 unsigned long bits;
665 665
666 struct ap_data *ap; 666 struct ap_data *ap;
667 667
diff --git a/drivers/net/wireless/ray_cs.h b/drivers/net/wireless/ray_cs.h
index bd73ebf03340..1e23b7f4cca7 100644
--- a/drivers/net/wireless/ray_cs.h
+++ b/drivers/net/wireless/ray_cs.h
@@ -33,8 +33,8 @@ typedef struct ray_dev_t {
33 void __iomem *rmem; /* pointer to receive buffer window */ 33 void __iomem *rmem; /* pointer to receive buffer window */
34 struct pcmcia_device *finder; /* pointer back to struct pcmcia_device for card */ 34 struct pcmcia_device *finder; /* pointer back to struct pcmcia_device for card */
35 struct timer_list timer; 35 struct timer_list timer;
36 long tx_ccs_lock; 36 unsigned long tx_ccs_lock;
37 long ccs_lock; 37 unsigned long ccs_lock;
38 int dl_param_ccs; 38 int dl_param_ccs;
39 union { 39 union {
40 struct b4_startup_params b4; 40 struct b4_startup_params b4;