Commit deba3240 authored by David S. Miller's avatar David S. Miller

[I2C]: Use correct port address typing in i2c-elv.c

parent 8709c2e3
...@@ -38,11 +38,11 @@ ...@@ -38,11 +38,11 @@
#include <asm/io.h> #include <asm/io.h>
#define DEFAULT_BASE 0x378 #define DEFAULT_BASE 0x378
static int base=0; static long base=0;
static unsigned char port_data = 0; static unsigned char port_data = 0;
/* --- Convenience defines for the parallel port: */ /* --- Convenience defines for the parallel port: */
#define BASE (unsigned int)(data) #define BASE (unsigned long)(data)
#define DATA BASE /* Centronics data port */ #define DATA BASE /* Centronics data port */
#define STAT (BASE+1) /* Centronics status port */ #define STAT (BASE+1) /* Centronics status port */
#define CTRL (BASE+2) /* Centronics control port */ #define CTRL (BASE+2) /* Centronics control port */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment