Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752571AbbKQKoc (ORCPT ); Tue, 17 Nov 2015 05:44:32 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:35366 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750913AbbKQKo1 (ORCPT ); Tue, 17 Nov 2015 05:44:27 -0500 From: Marc Titinger To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net Cc: daniel.baluta@intel.com, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Marc Titinger Subject: [RFC 0/2] ABI: IIO: proposal for AVERAGING_RATIO support Date: Tue, 17 Nov 2015 11:44:08 +0100 Message-Id: <1447757050-4214-1-git-send-email-mtitinger@baylibre.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 28 This is an attempt to document/define simple downsampling/averaging features for some ADC devices. As discussed in https://lkml.org/lkml/2015/11/16/566 As an illustration, Patch 2 is an instance of implementation using ina226. Marc Titinger (2): ABI: iio: support AVERAGING_RATIO setting iio: ina2xx: convert AVERGING ratio setting from generic sysfs attr to ABI Documentation/ABI/testing/sysfs-bus-iio | 13 +++++++++ drivers/iio/adc/ina2xx-iio.c | 47 +++++---------------------------- drivers/iio/industrialio-core.c | 1 + include/linux/iio/iio.h | 1 + include/linux/iio/sysfs.h | 9 +++++++ 5 files changed, 30 insertions(+), 41 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/