Skip to contentSkip to conversation

Cobalt fixes [3 of 6]

PATCH New Peter Horton 1 participant 1 message Feb 20, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Cobalt fixes [3 of 6]

Fix Cobalt LCD driver for 2.6.

P.

drivers/char/lcd.c +2 -2
@@ -575,8 +575,8 @@ static inline int button_pressed(void)
 
 static int lcd_waiters = 0;
 
-static long lcd_read(struct inode *inode, struct file *file, char *buf,
-		     unsigned long count)
+static ssize_t lcd_read(struct file *file, char *buf,
+		     size_t count, loff_t *ofs)
 {
 	long buttons_now;
 
drivers/char/lcd.h +1 -1
@@ -22,7 +22,7 @@ static int timeout(volatile unsigned lon
 #define MAX_IDLE_TIME 120
 
 struct lcd_display {
-        unsigned long buttons;
+        unsigned buttons;
         int size1;
         int size2;
         unsigned char line1[LCD_CHARS_PER_LINE];