Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp26266pxb; Tue, 19 Jan 2021 23:47:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDdsQySjMH7+nuYArcKl2JW/7fIjeQBOU2GOimIxKZFD0gHRfALboRcnDrDK5T2GtNL/f0 X-Received: by 2002:a05:6402:407:: with SMTP id q7mr6363349edv.312.1611128858098; Tue, 19 Jan 2021 23:47:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611128858; cv=none; d=google.com; s=arc-20160816; b=0VrjyyEJoklimU0cPsxz7RYuHrZYSpT1XPsxlYq/8i5+Jm7nOelzwHROJadJTVpW3T TVIjhOdnrR+Wmiu7z9rPdLXfkKp0uOY5kLlFB8zbKhvpwV2BPzL0KPpN9K9jAoWVBlW2 wM5OCk+idVq+meU2Dds3SHUF2aOc08En421V/hK8fMVJMYkz3MFlsVv96GKPb35bGP0b sUar35bGCRWyU9v5IV4MFNXqzzya6sIfBeVcUm7KiC/WP2m1Cw8+n7+XynwJF/5XPPvT rM5iA8HA4NiSRIDoEXElh2F9i+/6myK5grPHdTCyokAdWb+eXs3rOkZVTapopauSvjW/ 8A+A== 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=hjQXs86B9o8UoNZoyzMwacVT9dsoz5dyKWehux4SHb4=; b=zUPP5XlcNMzYJ0UtfJVcXkOZccdVaAEw6uu8o8mTZ3baa1FkQXVO2f6GUiOjN+sVCB kgJtU5W1CghXyuxJyYFlNLHoKOub0B8Egq+9euFJ62mXDeL8YVQNgjBFc7SxmJ61Xtxz 3EzpKU8YyXPNJCpyzuUIFJc4y11DZNxc1x649DMN1+xqxopq2okJhZEJ9639dDhVrzKu OLfdO7fkhX3eYezsTQ1yoqEG8OXi5qLsmIzwYofZq9FtYAWZ21bYCzeDbNQKbpCHtwK2 pJs9u+hkw9n03pj2fazV5vMQ2EycYh8b68g0VzWybZ4RByZh5sh/HgyzZq3L0ZAYpKfy EDZA== 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 hr20si440893ejc.23.2021.01.19.23.47.14; Tue, 19 Jan 2021 23:47:38 -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 S1729994AbhATHqf (ORCPT + 99 others); Wed, 20 Jan 2021 02:46:35 -0500 Received: from mga17.intel.com ([192.55.52.151]:7116 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728215AbhATHqe (ORCPT ); Wed, 20 Jan 2021 02:46:34 -0500 IronPort-SDR: ZK9AsS1uldtu4kCYV1dvvyPLZU2EE/QxruDnGSjX9Hx8NpfE+SN1PXd9rnVHexHNisRhI07VfE PKy0jr3puuCg== X-IronPort-AV: E=McAfee;i="6000,8403,9869"; a="158836353" X-IronPort-AV: E=Sophos;i="5.79,360,1602572400"; d="scan'208";a="158836353" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2021 23:45:54 -0800 IronPort-SDR: +44SCZeZpBzqKfP3WQ9/Wys4rNcePPXriBEVdg6h6gAjCiD2aSza9OTs6qRByYDhda8IRATNij raOZSHbevbxA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,360,1602572400"; d="scan'208";a="466994219" Received: from host.sh.intel.com ([10.239.154.115]) by fmsmga001.fm.intel.com with ESMTP; 19 Jan 2021 23:45:52 -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 0/3] resolve read hystersis return invalid argument issue for hid sensors Date: Wed, 20 Jan 2021 15:47:03 +0800 Message-Id: <20210120074706.23199-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 move get sensitivity attribute to common layer and resolve read hystersis return invalid argument issue for hid sensors als, incli-3d, rotation, and press on intel ISH Platform. Ye Xiang (3): iio: hid-sensors: Move get sensitivity attribute to hid-sensor-common hid-sensor-common: Add relative sensitivity check hid-sensors: Add more data fields for sensitivity checking drivers/iio/accel/hid-sensor-accel-3d.c | 23 +++++-------- .../hid-sensors/hid-sensor-attributes.c | 26 +++++++++++++- drivers/iio/gyro/hid-sensor-gyro-3d.c | 19 ++++------- drivers/iio/humidity/hid-sensor-humidity.c | 16 ++++----- drivers/iio/light/hid-sensor-als.c | 20 +++++------ drivers/iio/light/hid-sensor-prox.c | 27 +++++---------- drivers/iio/magnetometer/hid-sensor-magn-3d.c | 34 ++++++------------- drivers/iio/orientation/hid-sensor-incl-3d.c | 20 +++++------ drivers/iio/orientation/hid-sensor-rotation.c | 24 ++++++------- .../position/hid-sensor-custom-intel-hinge.c | 20 ++++------- drivers/iio/pressure/hid-sensor-press.c | 20 +++++------ .../iio/temperature/hid-sensor-temperature.c | 16 ++++----- drivers/rtc/rtc-hid-sensor-time.c | 4 ++- include/linux/hid-sensor-hub.h | 4 ++- include/linux/hid-sensor-ids.h | 1 + 15 files changed, 122 insertions(+), 152 deletions(-) -- 2.17.1