Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64b33619 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

long vs. unsigned long - low-hanging fruits in drivers



deal with signedness of the stuff passed to set_bit() et.al.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0cc0844b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ MODULE_DESCRIPTION("NatSemi SCx200 Driver");
MODULE_LICENSE("GPL");

unsigned scx200_gpio_base = 0;
long scx200_gpio_shadow[2];
unsigned long scx200_gpio_shadow[2];

unsigned scx200_cb_base = 0;

+1 −1
Original line number Diff line number Diff line
@@ -626,7 +626,7 @@ typedef struct {

struct amb_dev {
  u8               irq;
  long		   flags;
  unsigned long	   flags;
  u32              iobase;
  u32 *            membase;

+1 −1
Original line number Diff line number Diff line
@@ -423,7 +423,7 @@ struct hrz_dev {
  wait_queue_head_t   tx_queue;

  u8                  irq;
  long		      flags;
  unsigned long	      flags;
  u8                  tx_last;
  u8                  tx_idle;

+1 −1
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ static int sizeof_bootstrap = 375;


static struct dsp56k_device {
	long in_use;
	unsigned long in_use;
	long maxio, timeout;
	int tx_wsize, rx_wsize;
} dsp56k;
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ struct Host {
	struct UnixRup UnixRups[MAX_RUP + LINKS_PER_UNIT];
	int timeout_id;				/* For calling 100 ms delays */
	int timeout_sem;			/* For calling 100 ms delays */
	long locks;				/* long req'd for set_bit --RR */
	unsigned long locks;			/* long req'd for set_bit --RR */
	char ____end_marker____;
};
#define Control      CardP->DpControl
Loading