From patchwork Sat Aug 7 15:38:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Mack X-Patchwork-Id: 118188 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o77Fcd2n011825 for ; Sat, 7 Aug 2010 15:38:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752117Ab0HGPig (ORCPT ); Sat, 7 Aug 2010 11:38:36 -0400 Received: from buzzloop.caiaq.de ([212.112.241.133]:41844 "EHLO buzzloop.caiaq.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751938Ab0HGPig (ORCPT ); Sat, 7 Aug 2010 11:38:36 -0400 Received: from localhost (localhost [127.0.0.1]) by buzzloop.caiaq.de (Postfix) with ESMTP id 67F067F406A; Sat, 7 Aug 2010 17:38:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at buzzloop.caiaq.de Received: from buzzloop.caiaq.de ([127.0.0.1]) by localhost (buzzloop.caiaq.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bwhEtW4vJt0H; Sat, 7 Aug 2010 17:38:31 +0200 (CEST) Received: from jup.xaos.intra (port-92-206-221-176.dynamic.qsc.de [92.206.221.176]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by buzzloop.caiaq.de (Postfix) with ESMTPSA id 759857F4068; Sat, 7 Aug 2010 17:38:31 +0200 (CEST) From: Daniel Mack To: linux-input@vger.kernel.org Cc: Daniel Mack , Dmitry Torokhov Subject: [PATCH] input: add ABS definitions for 16 pressure sensitve pads Date: Sat, 7 Aug 2010 17:38:17 +0200 Message-Id: <1281195497-6957-1-git-send-email-daniel@caiaq.de> X-Mailer: git-send-email 1.7.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 07 Aug 2010 15:39:12 +0000 (UTC) diff --git a/include/linux/input.h b/include/linux/input.h index 896a922..b88d965 100644 --- a/include/linux/input.h +++ b/include/linux/input.h @@ -709,13 +709,30 @@ struct input_absinfo { #define ABS_MT_TRACKING_ID 0x39 /* Unique ID of initiated contact */ #define ABS_MT_PRESSURE 0x3a /* Pressure on contact area */ +#define ABS_PAD0 0x40 /* pressure sensitive pads */ +#define ABS_PAD1 0x41 +#define ABS_PAD2 0x42 +#define ABS_PAD3 0x43 +#define ABS_PAD4 0x44 +#define ABS_PAD5 0x45 +#define ABS_PAD6 0x46 +#define ABS_PAD7 0x47 +#define ABS_PAD8 0x48 +#define ABS_PAD9 0x49 +#define ABS_PAD10 0x4a +#define ABS_PAD11 0x4b +#define ABS_PAD12 0x4c +#define ABS_PAD13 0x4d +#define ABS_PAD14 0x4e +#define ABS_PAD15 0x4f + #ifdef __KERNEL__ /* Implementation details, userspace should not care about these */ #define ABS_MT_FIRST ABS_MT_TOUCH_MAJOR #define ABS_MT_LAST ABS_MT_PRESSURE #endif -#define ABS_MAX 0x3f +#define ABS_MAX 0x4f #define ABS_CNT (ABS_MAX+1) /* diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 48c007d..f9711de 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -287,7 +287,7 @@ struct pcmcia_device_id { #define INPUT_DEVICE_ID_KEY_MIN_INTERESTING 0x71 #define INPUT_DEVICE_ID_KEY_MAX 0x2ff #define INPUT_DEVICE_ID_REL_MAX 0x0f -#define INPUT_DEVICE_ID_ABS_MAX 0x3f +#define INPUT_DEVICE_ID_ABS_MAX 0x4f #define INPUT_DEVICE_ID_MSC_MAX 0x07 #define INPUT_DEVICE_ID_LED_MAX 0x0f #define INPUT_DEVICE_ID_SND_MAX 0x07