htcpen.c (b1bdd255661369cb6eb90b6e181169b5e6d0f9b6) | htcpen.c (90ab5ee94171b3e28de6bb42ee30b527014e0be7) |
---|---|
1/* 2 * HTC Shift touchscreen driver 3 * 4 * Copyright (C) 2008 Pau Oliva Fora <pof@eslack.org> 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License version 2 as published 8 * by the Free Software Foundation. --- 26 unchanged lines hidden (view full) --- 35 36#define X_INDEX 3 37#define Y_INDEX 5 38#define TOUCH_INDEX 0xb 39#define LSB_XY_INDEX 0xc 40#define X_AXIS_MAX 2040 41#define Y_AXIS_MAX 2040 42 | 1/* 2 * HTC Shift touchscreen driver 3 * 4 * Copyright (C) 2008 Pau Oliva Fora <pof@eslack.org> 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License version 2 as published 8 * by the Free Software Foundation. --- 26 unchanged lines hidden (view full) --- 35 36#define X_INDEX 3 37#define Y_INDEX 5 38#define TOUCH_INDEX 0xb 39#define LSB_XY_INDEX 0xc 40#define X_AXIS_MAX 2040 41#define Y_AXIS_MAX 2040 42 |
43static int invert_x; | 43static bool invert_x; |
44module_param(invert_x, bool, 0644); 45MODULE_PARM_DESC(invert_x, "If set, X axis is inverted"); | 44module_param(invert_x, bool, 0644); 45MODULE_PARM_DESC(invert_x, "If set, X axis is inverted"); |
46static int invert_y; | 46static bool invert_y; |
47module_param(invert_y, bool, 0644); 48MODULE_PARM_DESC(invert_y, "If set, Y axis is inverted"); 49 50static irqreturn_t htcpen_interrupt(int irq, void *handle) 51{ 52 struct input_dev *htcpen_dev = handle; 53 unsigned short x, y, xy; 54 --- 196 unchanged lines hidden --- | 47module_param(invert_y, bool, 0644); 48MODULE_PARM_DESC(invert_y, "If set, Y axis is inverted"); 49 50static irqreturn_t htcpen_interrupt(int irq, void *handle) 51{ 52 struct input_dev *htcpen_dev = handle; 53 unsigned short x, y, xy; 54 --- 196 unchanged lines hidden --- |