File appleir-1.1.dif of Package appleir

--- README
+++ README
@@ -0,0 +1,11 @@
+keycodes 176  XF86AudioRaiseVolume  (top)
+         174  XF86AudioLowerVolume  (bottom)
+         144  XF86AudioPrev         (left)
+         153  XF86AudioNext         (right)
+         162  XF86AudioPlay         (middle)
+work out of the box.
+
+I had to set this one manually:
+         158  XF86Sleep             (menu)
+         (or use something appropriate like XF86Menu)
+
--- appleir.c
+++ appleir.c
@@ -191,7 +191,7 @@
 }
 
 static void
-appleir_urb (struct urb *urb, struct pt_regs *regs)
+appleir_urb (struct urb *urb)
 {
   struct appleir *appleir = urb->context;
   int retval;
@@ -221,7 +221,7 @@
 static int
 appleir_open (struct input_dev *dev)
 {
-  struct appleir *appleir = dev->private;
+  struct appleir *appleir = input_get_drvdata(dev);
 
   //appleir->urb->dev = appleir->usbdev;
 
@@ -234,7 +234,7 @@
 static void
 appleir_close (struct input_dev *dev)
 {
-  struct appleir *appleir = dev->private;
+  struct appleir *appleir = input_get_drvdata(dev);
   usb_kill_urb (appleir->urb);
   del_timer_sync (&appleir->key_up_timer);
 }
@@ -282,8 +282,8 @@
   input_dev->name = "Apple Mac mini infrared remote control driver";
   input_dev->phys = appleir->phys;
   usb_to_input_id (dev, &input_dev->id);
-  input_dev->cdev.dev = &intf->dev;
-  input_dev->private = appleir;
+  input_dev->dev.parent = &intf->dev;
+  input_set_drvdata(input_dev,appleir);
 
   input_dev->evbit[0] = BIT (EV_KEY) | BIT (EV_REP);
   input_dev->ledbit[0] = 0;