From patchwork Sat Dec 15 12:45:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Holler X-Patchwork-Id: 206616 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-wi0-f184.google.com (mail-wi0-f184.google.com [209.85.212.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 33AB22C00D8 for ; Sat, 15 Dec 2012 23:46:07 +1100 (EST) Received: by mail-wi0-f184.google.com with SMTP id o1sf474414wic.11 for ; Sat, 15 Dec 2012 04:46:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-received: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=FrSLHh4oZzyLMgnwmH9nlLt+iFitBIPmeX1E0RQgomOeJbPduapdLqIPWKsOhbfi+D tUm4nOikHrnwxrIEdp5IskCRT9RgYJ1X1pe3/hLGRt6jhOdHHNq0haBS5qiAnrpJPr/9 LHafh6EKXglKJmn9KcqJ0U1KM/NcJxXFNnLu5jN0rCPr5+2zSKUVHqtZCou4Uj159oXU m9Fxa+kGkqctxTJ+AMgrgl4wq5tzFMAoxjHgFtB1VOerEjRHUaXudR4VV2iro6qrKVJ3 k6Yjb3OCdVuW9d6/p4q/wyt3HXoQUvsIz1s5QHaSDW1/w9u1nR+PKqvD2QnYSJfnzQ19 BwPQ== X-Received: by 10.180.84.3 with SMTP id u3mr603762wiy.13.1355575564520; Sat, 15 Dec 2012 04:46:04 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.180.99.69 with SMTP id eo5ls660384wib.16.gmail; Sat, 15 Dec 2012 04:46:04 -0800 (PST) Received: by 10.204.145.215 with SMTP id e23mr370414bkv.0.1355575564042; Sat, 15 Dec 2012 04:46:04 -0800 (PST) Received: by 10.204.145.215 with SMTP id e23mr370413bkv.0.1355575564028; Sat, 15 Dec 2012 04:46:04 -0800 (PST) Received: from mail.ahsoftware.de (h1446028.stratoserver.net. [85.214.92.142]) by gmr-mx.google.com with ESMTP id j28si550792bkv.0.2012.12.15.04.46.03; Sat, 15 Dec 2012 04:46:04 -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 BA32888813B; Sat, 15 Dec 2012 13:46:03 +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 (p57B20D2E.dip0.t-ipconnect.de [87.178.13.46]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.ahsoftware.de (Postfix) with ESMTPSA id 457E58880A0 for ; Sat, 15 Dec 2012 13:46:03 +0100 (CET) Received: by eiche.ahsoftware (Postfix, from userid 65534) id 92F383FDF3; Sat, 15 Dec 2012 13:46:02 +0100 (CET) Received: from laptopahvpn.ahsoftware (unknown [192.168.213.6]) by eiche.ahsoftware (Postfix) with ESMTP id 0592F3FD7C; Sat, 15 Dec 2012 12:45:58 +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 , Jiri Kosina , Alexander Holler Subject: [rtc-linux] [PATCH 1/4 RESEND] iio: Add Usage IDs for HID time sensors. Date: Sat, 15 Dec 2012 13:45:34 +0100 Message-Id: <1355575537-10093-1-git-send-email-holler@ahsoftware.de> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <50CC6FE3.6060705@ahsoftware.de> References: <50CC6FE3.6060705@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 Signed-off-by: Jiri Kosina --- 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