Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3522475ybi; Tue, 18 Jun 2019 02:07:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwO5dFXt/x3jS030x/e2FJhKnI5E3x0Op6nluM/EvSxlHN/kuZnA0dgDGBfKv1Ar0ZF8vVf X-Received: by 2002:a63:2326:: with SMTP id j38mr1732872pgj.134.1560848847842; Tue, 18 Jun 2019 02:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560848847; cv=none; d=google.com; s=arc-20160816; b=qU2URNk7RWCWDi8V4sxuZBbzXw2vd13Ui8TNi4hGxRaNscBtztLOQHzX1X70XwRhTZ sw2gWKYkYPvOccvKnYMa1RJhahV3gRrFN3mqvNCC6FViPy90A9NEIYszlJeaJPe9jt7y BOtcXbWzKH7nAvx+0AhcuGLfcIWIQFPufNLc7DiRjGnycfF/mQwcZ1Raw6NmEZbRGbII EK925EEKXrxS74JDWSCVLWwdHMA5/ivNV/UQ9DW8fx0g7scFd3TKr66KRqkMPnP/XBRL UAtPmdydUjebCakk1Inf5tPmMIZ9P7zcPF9jBCbavH1V+pUgVBfoENzXT+2ycibQgXlW W70g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=QmUjo500DZ+ItqmaYzyMVm0Afz/hafd1VR31Xdy93Fk=; b=PP/D6MoXJyfO1BZcWJWdlcLi2uCdh/IjufLSK1/AWoDtBOkLiotQoGl65AJbE0QqTp MqXUnNBsCMk4wtWHcpPG7rdwMJmilkr+Kz8Leo1/KvvbYNSYBDIZH2mx+lAjrirP9Al0 1yIg61U+y6ct8BLK2wajGelkL7lqZsfWU0rmB6lYCjCg3+2dt+DVm8A4unZ9UnwU53fi ugPF6vNjIzkSIqCX7m21Z6q7LewKTidJz9VRIs5f59T3eqniXdgi2C9QRf0cMY0uMQWo thM6Hbj/Bf1+hCqr4TyfKS5/WW74RwJO6/GwdtdwRbKCdvEM6OeM7+VLcfHHV5LvsYjU 2F8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r9si13198488pgv.272.2019.06.18.02.07.08; Tue, 18 Jun 2019 02:07:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729199AbfFRJHB (ORCPT + 99 others); Tue, 18 Jun 2019 05:07:01 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:59970 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728965AbfFRJHB (ORCPT ); Tue, 18 Jun 2019 05:07:01 -0400 Received: from laptop.home (unknown [IPv6:2a01:cb19:8ad6:900:42dd:dd1c:19ee:7c60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: aragua) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 8DC9A260A33; Tue, 18 Jun 2019 10:06:59 +0100 (BST) From: Fabien Lahoudere Cc: kernel@collabora.com, Fabien Lahoudere , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/8] Expose cros_ec_sensors frequency range via iio sysfs Date: Tue, 18 Jun 2019 11:06:31 +0200 Message-Id: X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Chromebooks EC sensors must expose a range of frequencies for each sensors using the standard ABI sampling_frquency_available. Changes since v2: - use read_avail callback - rework core functions to avoid code duplication Changes since v1: - Add a cover letter - Add Nick Vaccaro SoB to patch 1 - Drop fifo size related code Fabien Lahoudere (8): iio: common: cros_ec_sensors: move iio_info management to core iio: common: cros_ec_sensors: move channels to core structure iio: common: cros_ec_sensors: move registration to core iio: common: cros_ec_sensors: clean code iio: common: cros_ec_sensors: use core structure iio: common: cros_ec_sensors: support protocol v3 message iio: common: cros_ec_sensors: add sysfs attribute for frequencies docs: iio: add precision about sampling_frequency_available Documentation/ABI/testing/sysfs-bus-iio | 7 +- .../common/cros_ec_sensors/cros_ec_sensors.c | 148 +++++------ .../cros_ec_sensors/cros_ec_sensors_core.c | 230 +++++++++++++++--- drivers/iio/light/cros_ec_light_prox.c | 124 ++++------ drivers/iio/pressure/cros_ec_baro.c | 101 +++----- .../linux/iio/common/cros_ec_sensors_core.h | 43 +++- 6 files changed, 357 insertions(+), 296 deletions(-) -- 2.20.1