From patchwork Wed Mar 1 14:45:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 94709 Delivered-To: patch@linaro.org Received: by 10.140.20.113 with SMTP id 104csp1827632qgi; Wed, 1 Mar 2017 06:46:27 -0800 (PST) X-Received: by 10.99.108.74 with SMTP id h71mr8896294pgc.99.1488379586984; Wed, 01 Mar 2017 06:46:26 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r11si4799520plj.106.2017.03.01.06.46.26; Wed, 01 Mar 2017 06:46:26 -0800 (PST) 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; dkim=pass header.i=@linaro.org; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752100AbdCAOqW (ORCPT + 25 others); Wed, 1 Mar 2017 09:46:22 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:33788 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751585AbdCAOpg (ORCPT ); Wed, 1 Mar 2017 09:45:36 -0500 Received: by mail-wm0-f51.google.com with SMTP id i17so8779350wmf.0 for ; Wed, 01 Mar 2017 06:45:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lUg6TxV+L89P/KgNkBol7vD5HgXmOac5J4YpiFQeeqs=; b=XkSgkB7947FTjxSOZbyBIsMEOGuWFah7y201wc5UNW7vURL1xwvc4NrclWu6r0w+wI 7QIiZI280mWgKG/g3yfWEM/q7g6uE3n6J7xCBcTfGslmund7HQ2IaN8ymEXLz3iPVui8 4L2U55dcbryNXngXXFyqpgFm2vIuwtlacU06k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lUg6TxV+L89P/KgNkBol7vD5HgXmOac5J4YpiFQeeqs=; b=O/ICJXwVTpkN6wmkrJppM5oT+m54gMXus+hRTFLgdTjVX6Ceo5Y8+UrUWZt06dElPt me1lUscXF6x511j7AkyewV5gnbrdUZ2gO3X9LxsgLVaQjlMKJ+u/FI7bh3MkzMtjMPOj 6OOYBpGWZvBxV5w4FwZp0J6A0nH0gzpryvhFMGZA267rGcFTW42fFKTyDiCO2cGdHvjh Yv7FFBBRWk4zlJZJ7ciDwLWDuAbIldBSdKee6ePW0baj7UfV/0Gd0gR0bumRVEQOSXY+ 9XyypeAVJD3x3aCBH2UBvuqXwMU0xyqXmYYQAJKdqSj+hqPr2JGZBuzhURZWH5SCR6wf /c5g== X-Gm-Message-State: AMke39lhSjXbFpoQ4OQXW1f8LwBIM4NfmSGoB4j95+FlMrrN5OX3JHz585a/xwoKZWnf4Gte X-Received: by 10.28.133.203 with SMTP id h194mr3712965wmd.122.1488379516808; Wed, 01 Mar 2017 06:45:16 -0800 (PST) Received: from lmenx321.st.com. ([80.215.231.183]) by smtp.gmail.com with ESMTPSA id y145sm23087705wmc.17.2017.03.01.06.45.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Mar 2017 06:45:16 -0800 (PST) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: linux-kernel@vger.kernel.org, jic23@kernel.org, linux-iio@vger.kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net Cc: fabrice.gasnier@st.com, linaro-kernel@lists.linaro.org, benjamin.gaignard@linaro.org, Benjamin Gaignard Subject: [PATCH v1 1/2] iio: Generalize counting direction modes Date: Wed, 1 Mar 2017 15:45:05 +0100 Message-Id: <1488379506-23969-2-git-send-email-benjamin.gaignard@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1488379506-23969-1-git-send-email-benjamin.gaignard@st.com> References: <1488379506-23969-1-git-send-email-benjamin.gaignard@st.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move counting direction documentation for 104-quad-8 to sysfs-bus-iio to avoid duplicated for other incoming drivers Signed-off-by: Benjamin Gaignard --- Documentation/ABI/testing/sysfs-bus-iio | 14 ++++++++++++++ Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8 | 8 -------- 2 files changed, 14 insertions(+), 8 deletions(-) -- 1.9.1 diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index b8f220f..b63723b 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -1597,3 +1597,17 @@ Description: provides an absolute positional reference (e.g. a pulse once per revolution) which may be used to home positional systems as required. + +What: /sys/bus/iio/devices/iio:deviceX/in_count_count_direction_available +KernelVersion: 4.12 +Contact: linux-iio@vger.kernel.org +Description: + A list of possible counting directions which are: + - "up" : counter device is increasing. + - "down": counter device is decreasing. + +What: /sys/bus/iio/devices/iio:deviceX/in_countY_count_direction +KernelVersion: 4.12 +Contact: linux-iio@vger.kernel.org +Description: + Raw counter device counters direction for channel Y. diff --git a/Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8 b/Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8 index ba67652..322c8da 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8 +++ b/Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8 @@ -1,4 +1,3 @@ -What: /sys/bus/iio/devices/iio:deviceX/in_count_count_direction_available What: /sys/bus/iio/devices/iio:deviceX/in_count_count_mode_available What: /sys/bus/iio/devices/iio:deviceX/in_count_noise_error_available What: /sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available @@ -10,13 +9,6 @@ Description: Discrete set of available values for the respective counter configuration are listed in this file. -What: /sys/bus/iio/devices/iio:deviceX/in_countY_count_direction -KernelVersion: 4.9 -Contact: linux-iio@vger.kernel.org -Description: - Read-only attribute that indicates whether the counter for - channel Y is counting up or down. - What: /sys/bus/iio/devices/iio:deviceX/in_countY_count_mode KernelVersion: 4.9 Contact: linux-iio@vger.kernel.org