Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3153272pxb; Sat, 6 Feb 2021 23:03:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGroEQiTEMxBL2S8MKHJy3/D2F0/7+tkzAnqv4ZJmI7jEqi6Mm4sGTNlviK+6ySDnVXTsh X-Received: by 2002:a05:6402:10ce:: with SMTP id p14mr11406017edu.261.1612681393242; Sat, 06 Feb 2021 23:03:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612681393; cv=none; d=google.com; s=arc-20160816; b=u5MkgFzVfdHkAS5B0c2NALb92fXdP/kldS1QyDds3/WdjjNHVWa7ga/7cR8qSw1OoP C7nylxN6lTH52hPi9OoE5BGFwfiQAhiHlMWMrRreCA7cOD7retfx9qeqyS/zSCsutVNI bRMOMKHc7dA+1svlnsAFxEb2ZptLEnYyCj2+6Ujh4vFRM+7dBA4TxTiA+kO1nj4OPml5 vYIcR/zQss0rkTQJXwQFbrlhsSN2pChLdJi62VujS97OCo1vtCz+24AFa0ZGxD/RPU9u 4vlMnGB0s2PpzTCAoT/tpGNYup/w1RAb2LVDKCh2qFuwL9an6cd/STdJkRO3mLNNMRBr +i5w== 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=uzjhJCW846xm5LpYzCr7nXra3h2tk2iM3jnRwrCD7vY=; b=J4F7odpF9L7tCPlV3c2kKvAeUgDSr3J5sCkZLOlxUGbk8H5wFtWWf6u1a5lIK3vJUB FnRdKaoE8Q67SmwZzoPVEZBfUGky5loFG8iiG5wpxBnj1O6sJK2SgBP62WHTlKxSqQvM h8HD5HuTLLG6i+WC3h9UO02zog7fNswWNXRsS+gOx6y86wkHV6R9EVKLkVcSIj+9iQMU gus3IvgPus/bbPakPovkrpsX6QA8/NhJUIa2u1wDLL/Vl9X22/NOi+h4fJ2FBjagZfbn BLDhG84OHMIITAEHmPD6aj089vW7yyWtA7JZmy+C2eEjEmLgZKxBzDEWSZMwvSDLOVop xiUA== 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 t24si2520446edi.583.2021.02.06.23.02.50; Sat, 06 Feb 2021 23:03:13 -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 S229879AbhBGHBL (ORCPT + 99 others); Sun, 7 Feb 2021 02:01:11 -0500 Received: from mga11.intel.com ([192.55.52.93]:37921 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbhBGHAj (ORCPT ); Sun, 7 Feb 2021 02:00:39 -0500 IronPort-SDR: Gr+bell6oMoAuXw/gbuoI+J2HoycL4WjNC2wx2nezfdHkih6gvU+2xRW5CcVVhnSv+um4vvUMU nXwYFkU0b0vA== X-IronPort-AV: E=McAfee;i="6000,8403,9887"; a="178080521" X-IronPort-AV: E=Sophos;i="5.81,159,1610438400"; d="scan'208";a="178080521" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2021 22:59:57 -0800 IronPort-SDR: hBvHocRx/Q5jLWLzE2EGC06S8naubn7q8XeuF7gscqOwscTc6kXL4p2m986quZamRU9okLOJYX XHb2vLqrR3UQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,159,1610438400"; d="scan'208";a="374982534" Received: from host.sh.intel.com ([10.239.154.115]) by fmsmga008.fm.intel.com with ESMTP; 06 Feb 2021 22:59:55 -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/3] Add relative hysteresis support for hid sensors Date: Sun, 7 Feb 2021 15:00:45 +0800 Message-Id: <20210207070048.23935-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 Currently, hid sensor als are using the relative hysteresis. This patch series add the relative hysteresis for hid sensors. --- v2: - (1/3) fix the formatting issue in hid_sensor_read_raw_hyst_rel_value. - (3/3) add documentation just for light sensor. Ye Xiang (3): iio: Add relative sensitivity support iio: hid-sensor-als: Add relative hysteresis support iio: Add relative hysteresis in ABI documentation Documentation/ABI/testing/sysfs-bus-iio | 9 +++ .../hid-sensors/hid-sensor-attributes.c | 74 ++++++++++++++++++- drivers/iio/industrialio-core.c | 1 + drivers/iio/light/hid-sensor-als.c | 14 +++- include/linux/hid-sensor-hub.h | 5 ++ include/linux/hid-sensor-ids.h | 1 + include/linux/iio/types.h | 1 + 7 files changed, 99 insertions(+), 6 deletions(-) -- 2.17.1