Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3174172pxb; Sun, 31 Jan 2021 06:49:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmniluN/S78JXl49JyGpHA3UygTkssF9cHH+hrZp3iN9GNQVRHsJvVhirjxQyDLe+L7aNm X-Received: by 2002:a17:906:5043:: with SMTP id e3mr13333402ejk.260.1612104596556; Sun, 31 Jan 2021 06:49:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612104596; cv=none; d=google.com; s=arc-20160816; b=nxoqGyZriv+E6AwBHQB2ABhhhzNPYuWIeCbEQjOMifeMpmg4aCt5q0Sauvxl2B8caX vPUjL1iNW28ybbXrcDz/jb+DB8/y5BG3yhuGVTyYGVbLf3p1k/y6JBZwkmD5cq/8R3aI axjCAxRb7JxDm1+QFB56wiCDZpUR0GqtaeD6HuYnTeEl21WIsynCsYYCkBwiqO3mMIqe gi9CgCFFwPPNVFp7iBmg09CjjBVlJSAS5ef3DOtoARol0b0qSi7X9RIpBDM3jV0WIaz+ +PDftyD+EF7k2fBLRJQp8z4RGLj5zaj4gkwqkIyAk5Unzq4oPj2NLu+ydDV/LBA05n4g 8UNw== 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=/vNzqOh4iiJ7hYzKz9AFHuAcBnOlMlQaFxAhfhljic8=; b=Tnc1I5XQhsG6GFa2GdaZdNC92zO8Ls+fAmcaqDvVp/XNU8VMez7meKcFQL3RvAi5UZ vIf54dAKJgUGisejGc6o7skDd0CpWRUxcuIgYpqpSNAlt862ay3b4gPwrE61MWyVlk4n ZgApdvwICkJvnhZMXh8hFhr4jE9VG7eSI+EC1nRFDhT91Yu4b8AgijVYvti+foLTf4QY lqTRZlPm9Ds/B+pEfnkvrC2rTcG26m+tHQgVISXhR2e7pIHo0+iFXZmtPPn4DWZNDecI rAlEuH6ku+nuPtqEzYevw04IvZjU8NgQ0A6FoYAYlukkD8xMOEWXOvevTufQXDXczkLW oAGQ== 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 yd14si787551ejb.489.2021.01.31.06.49.30; Sun, 31 Jan 2021 06:49:56 -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 S232396AbhAaOpv (ORCPT + 99 others); Sun, 31 Jan 2021 09:45:51 -0500 Received: from mga07.intel.com ([134.134.136.100]:11388 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232760AbhAaOkp (ORCPT ); Sun, 31 Jan 2021 09:40:45 -0500 IronPort-SDR: rZFKGz5Ln4nS9Xh2bhd65NaFq2pLRj0IfXQcNoiOK/tzXRhcTt6TZVT5dx8BmBXY42MSLZ7gbp ihhdYqVGaFJA== X-IronPort-AV: E=McAfee;i="6000,8403,9880"; a="244675632" X-IronPort-AV: E=Sophos;i="5.79,390,1602572400"; d="scan'208";a="244675632" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2021 06:40:01 -0800 IronPort-SDR: yhYXlkRaILyNxEsopabfeqhVxeONcGSSqfU0oQo4jvtZ1VrXnC3mD7OJAMwwRqWSfAbITfW1+/ 5UyMiI5ytwJw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,390,1602572400"; d="scan'208";a="431805540" Received: from host.sh.intel.com ([10.239.154.115]) by orsmga001.jf.intel.com with ESMTP; 31 Jan 2021 06:39:58 -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 v2 0/2] resolve read hystersis return invalid argument issue for hid sensors Date: Sun, 31 Jan 2021 22:40:56 +0800 Message-Id: <20210131144058.11834-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. --- v2: - separate the add relative sensitivity patch to the next patch series. Ye Xiang (2): iio: hid-sensors: Move get sensitivity attribute to hid-sensor-common hid-sensors: Add more data fields for sensitivity checking drivers/iio/accel/hid-sensor-accel-3d.c | 23 ++++++------- .../hid-sensors/hid-sensor-attributes.c | 17 +++++++++- 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 | 32 ++++++------------- 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 ++- 14 files changed, 111 insertions(+), 151 deletions(-) -- 2.17.1