patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / drivers / input / gameport / lightning.c
index 8a8adb5..7d1d383 100644 (file)
 /*
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or 
+ * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- * 
+ *
  * Should you need to contact me, the author, you can do so either by
  * e-mail - mail your message to <vojtech@ucw.cz>, or by paper mail:
  * Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic
@@ -106,7 +106,7 @@ static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons)
 
        result = 0;
 
-fail:  outb(L4_SELECT_ANALOG, L4_PORT);        
+fail:  outb(L4_SELECT_ANALOG, L4_PORT);
        return result;
 }
 
@@ -126,7 +126,7 @@ static int l4_open(struct gameport *gameport, int mode)
 static int l4_getcal(int port, int *cal)
 {
        int i, result = -1;
-       
+
        outb(L4_SELECT_ANALOG, L4_PORT);
        outb(L4_SELECT_DIGITAL + (port >> 2), L4_PORT);
 
@@ -208,7 +208,7 @@ static int l4_calibrate(struct gameport *gameport, int *axes, int *max)
 
        return 0;
 }
-       
+
 static int __init l4_init(void)
 {
        int cal[4] = {255,255,255,255};
@@ -266,7 +266,7 @@ static int __init l4_init(void)
 
                        if (rev > 0x28)         /* on 2.9+ the setcal command works correctly */
                                l4_setcal(l4->port, cal);
-                       
+
                        gameport_register_port(gameport);
                }