Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14384914pxu; Mon, 4 Jan 2021 23:22:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8orbbNVe5aKryWzaQO/dwaS3TMl080m75yXV0cc2cFQFZT2oWVu32iRP+gJp8BhC0vVIj X-Received: by 2002:aa7:c603:: with SMTP id h3mr70657625edq.254.1609831368412; Mon, 04 Jan 2021 23:22:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609831368; cv=none; d=google.com; s=arc-20160816; b=kaKoxl4D3pGhJwzNdxSplrBfvaekx1N4D86MWE/GiHLZeYE9KBn3id4BwMho5u8TON EB8mpkGcgx/OmboeaXtO+Qxka3SVA8MVQWrqY/RL2/8sLkrMusX4VD5sw6b9sfaW5DCy I/WFDRfyUagqgmbddIsECqJLQoXY8OpFCQTMxbo8lirIz6XrODp2RDhEY4lC1KMR72e3 BJ8pWP8wEBcjzV58POeSH4BoYG1Wm0wNKK698/jeWgD2W0mzI57F3Vcvg8RhjU0784I/ B0V53YINkG5Ka58HIAoOdn/THg96yD7rwtmoYJzssfhllxnJHNqlor7ysHVy8KDrysPs 6dvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=PlQ2Kj8AWx1kchKOnMmqCjAFuRkhBOmZhllaxAPFcPQ=; b=ox6FS/bGRZmikkE+XYK3Qfsh242POVamnYTuTWofO5Aff2gj4Xdjrc0ZSkkgdQ6/TT bxpHavsXtZVPTsQGFCyyI8INt2jHtZcFyxfIQVpgIKILHOhdxL/zlhq+h91PhuBat6S6 OdDLa81jXlk5lrAnBWRrpt5hW8Ejtpm3VJs+0OwwzDd8o0LRzq2Mgx+W+emeaTMqwlkI ZfSVENqAS9d8TGInhUnSwYzIB0tIKQ5K2Iav6GlNTKmfjcU+AtjoyzAO55Wp/QoSmm5c Fg4nkCqeJk4fgleyRrvqkz2c2yMAosQ8Phsy7Sc6GaMgRl0Pc6dgBIxWCmz7hkCm1Eld 35yQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn20si34204370ejc.47.2021.01.04.23.22.25; Mon, 04 Jan 2021 23:22:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726488AbhAEHV3 (ORCPT + 99 others); Tue, 5 Jan 2021 02:21:29 -0500 Received: from mga05.intel.com ([192.55.52.43]:63487 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbhAEHV3 (ORCPT ); Tue, 5 Jan 2021 02:21:29 -0500 IronPort-SDR: d1wS9ZizdpekpSkIDpTwVpMzx8vUvLalNWgIy6q0DrnSTr1Ih9tL9DQ9v+D8pyvRaue0wl2n/Z UxURqtF31QWg== X-IronPort-AV: E=McAfee;i="6000,8403,9854"; a="261829285" X-IronPort-AV: E=Sophos;i="5.78,476,1599548400"; d="scan'208";a="261829285" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2021 23:20:48 -0800 IronPort-SDR: 8y1Lz43BHXXMGaV6M+0bjOS2YzkdWgwTTo9FlxR9ohtpreCZpz7ydt6QORdrJ4MSdiZdh6L031 7qoiYZEBFDpw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,476,1599548400"; d="scan'208";a="350260533" Received: from host.sh.intel.com ([10.239.154.115]) by fmsmga008.fm.intel.com with ESMTP; 04 Jan 2021 23:20:45 -0800 From: Ye Xiang To: jikos@kernel.org, jic23@kernel.org, srinivas.pandruvada@linux.intel.com Cc: linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Ye Xiang Subject: [PATCH v3 0/6] add timestamp channel for hid-sensors Date: Tue, 5 Jan 2021 15:21:57 +0800 Message-Id: <20210105072203.5701-1-xiang.ye@intel.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series add a timestamp channel for hid sensors, including gravity sensor, gyro sensor, magnetometer sensor, ambient light sensor, inclinometer sensor, and rotation sensor. With this patch series, user can get the time when sensor yield a sample. --- v3: - hid-sensor-magn-3d: fix iio_val buffer len issue. - hid-sensor-accel-3d: refine commit message v2: - remove unrelated changes. Ye Xiang (6): iio: hid-sensor-accel-3d: Add timestamp channel for gravity sensor iio: hid-sensor-gyro-3d: Add timestamp channel iio: hid-sensor-als: Add timestamp channel iio: hid-sensor-magn-3d: Add timestamp channel iio: hid-sensor-incl-3d: Add timestamp channel iio: hid-sensor-rotation: Add timestamp channel drivers/iio/accel/hid-sensor-accel-3d.c | 6 ++- drivers/iio/gyro/hid-sensor-gyro-3d.c | 40 +++++++++------- drivers/iio/light/hid-sensor-als.c | 39 ++++++++------- drivers/iio/magnetometer/hid-sensor-magn-3d.c | 48 ++++++++++++------- drivers/iio/orientation/hid-sensor-incl-3d.c | 43 ++++++++++------- drivers/iio/orientation/hid-sensor-rotation.c | 46 ++++++++++-------- 6 files changed, 134 insertions(+), 88 deletions(-) -- 2.17.1