From patchwork Tue Dec 11 18:21:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Holler X-Patchwork-Id: 205283 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-we0-f184.google.com (mail-we0-f184.google.com [74.125.82.184]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 117132C0085 for ; Wed, 12 Dec 2012 05:22:50 +1100 (EST) Received: by mail-we0-f184.google.com with SMTP id r6sf1615890wey.11 for ; Tue, 11 Dec 2012 10:22:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:x-beenthere:received-spf:x-spam-checker-version :x-spam-level:x-spam-status:from:to:cc:subject:date:message-id :x-mailer:in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=/tMO4VPvcmU9oqJKmmEyPXvF1Bozi5ZP/aTEnD3GCdQ=; b=c+Ujsve62u/9KqEL6cb57liYi7udA7VujWaw+hlzit/gwXFGc5tq4YOYKiFdc+6jmT F8bl4EjZjiqD6GsTW8ZY6BGJS5gWuzJ634dtp742vGMuY230uzvpfRUlV0E8SdWTc0U4 1R46s51IMPxzQyMvLmNkvMuuMjS4wUVRyihyOqZ1SdFXXIH50ncjdEnOvaWa2L4o5e49 tZiY4vbjOccW0R3HcGc2IMGTgOleQOj+Y/PE/C1vuQ2NdO+sR0f6v93qRYWE7+fGR+eU bsVe+MtHc87Dq3Vg+I9tFhJXxhw5GX4zyqYkXio57USs8VCdBoEtMKbCH/YSxMzSVvqv PHKA== Received: by 10.180.79.193 with SMTP id l1mr515968wix.2.1355250167874; Tue, 11 Dec 2012 10:22:47 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.180.73.114 with SMTP id k18ls1462940wiv.15.canary; Tue, 11 Dec 2012 10:22:47 -0800 (PST) Received: by 10.14.224.201 with SMTP id x49mr18242300eep.5.1355250167311; Tue, 11 Dec 2012 10:22:47 -0800 (PST) Received: by 10.14.224.201 with SMTP id x49mr18242299eep.5.1355250167300; Tue, 11 Dec 2012 10:22:47 -0800 (PST) Received: from mail.ahsoftware.de (h1446028.stratoserver.net. [85.214.92.142]) by gmr-mx.google.com with ESMTP id z44si9654101een.0.2012.12.11.10.22.47; Tue, 11 Dec 2012 10:22:47 -0800 (PST) Received-SPF: neutral (google.com: 85.214.92.142 is neither permitted nor denied by best guess record for domain of holler@ahsoftware.de) client-ip=85.214.92.142; Received: by mail.ahsoftware.de (Postfix, from userid 65534) id 0D498888B9F; Tue, 11 Dec 2012 19:22:46 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.ahsoftware.de X-Spam-Level: X-Spam-Status: No, score=-101.0 required=5.0 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=disabled version=3.3.1 Received: from eiche.ahsoftware (p57B20397.dip0.t-ipconnect.de [87.178.3.151]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.ahsoftware.de (Postfix) with ESMTPSA id 7C847888B94 for ; Tue, 11 Dec 2012 19:22:46 +0100 (CET) Received: by eiche.ahsoftware (Postfix, from userid 65534) id 936A23FDAF; Tue, 11 Dec 2012 19:22:45 +0100 (CET) Received: from laptopahvpn.ahsoftware (unknown [192.168.213.6]) by eiche.ahsoftware (Postfix) with ESMTP id 24DC13FD7C; Tue, 11 Dec 2012 18:22:29 +0000 (UTC) From: Alexander Holler To: linux-kernel@vger.kernel.org Cc: linux-iio@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , rtc-linux@googlegroups.com, Alessandro Zummo , srinivas pandruvada , Andrew Morton , Alexander Holler Subject: [rtc-linux] [PATCH 2/4 RESEND] iio: Add Usage IDs for HID time sensors. Date: Tue, 11 Dec 2012 19:21:44 +0100 Message-Id: <1355250106-3114-2-git-send-email-holler@ahsoftware.de> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1355250106-3114-1-git-send-email-holler@ahsoftware.de> References: <50C73AFC.1050904@jic23.retrosnub.co.uk> <1355250106-3114-1-git-send-email-holler@ahsoftware.de> X-Original-Sender: holler@ahsoftware.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 85.214.92.142 is neither permitted nor denied by best guess record for domain of holler@ahsoftware.de) smtp.mail=holler@ahsoftware.de Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , These are Usage IDs for the attributes year, month, day, hour, minute and second, needed to read HID time sensors. Signed-off-by: Alexander Holler --- include/linux/hid-sensor-ids.h | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/include/linux/hid-sensor-ids.h b/include/linux/hid-sensor-ids.h index ca8d7e9..3754ea9 100644 --- a/include/linux/hid-sensor-ids.h +++ b/include/linux/hid-sensor-ids.h @@ -67,6 +67,15 @@ #define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX_Y_AXIS 0x200486 #define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX_Z_AXIS 0x200487 +/* Time (2000a0) */ +#define HID_USAGE_SENSOR_TIME 0x2000a0 +#define HID_USAGE_SENSOR_TIME_YEAR 0x200521 +#define HID_USAGE_SENSOR_TIME_MONTH 0x200522 +#define HID_USAGE_SENSOR_TIME_DAY 0x200523 +#define HID_USAGE_SENSOR_TIME_HOUR 0x200525 +#define HID_USAGE_SENSOR_TIME_MINUTE 0x200526 +#define HID_USAGE_SENSOR_TIME_SECOND 0x200527 + /* Units */ #define HID_USAGE_SENSOR_UNITS_NOT_SPECIFIED 0x00 #define HID_USAGE_SENSOR_UNITS_LUX 0x01