Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1674812imm; Sun, 15 Jul 2018 13:49:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcaYwlU04NTnk08BbxjDHU2pmGMFyGIh5lLL45RaYSjrG6avdpd31uWvLjcv8ECBEdTrA8S X-Received: by 2002:a62:4695:: with SMTP id o21-v6mr15407535pfi.176.1531687750257; Sun, 15 Jul 2018 13:49:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531687750; cv=none; d=google.com; s=arc-20160816; b=kchQBLmOs3EUWqPNI9rjnrWKP2/z1e0bQi8aqwXPbA3H5B8My3Bm7M3nQQbMPEPF/W DGFuEb8mcA2QJ7k824gKel4QVxjnRvDdkaOCC/4dUoODyQb4ASzwnO9DotrlpVRLhY6a byKqqSZ1S3wsKvlXX8STn3nQnPrWJQh1hfYxxmqnceHQSYo+HvP17HPwhx8t1Xk0Q/zO E3KzHRdfaRnMmAxDh1IkAUYIJ3JKKOX5hPz6O5BVeQOE7ADcqOstft3o4BTsmt4ovHXG PrdJRhVRyXiotZIjB3vPpQX7ImW0kLiGpbRlKu3yaYmu9OjKIHj1zj0WXpLkg4iJTPVz i1zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Hxx88MyoNyP98DOrKEatgXfolbviUTzcRJ5klLW7Pw4=; b=f0qbBj6Jt10AvAcI9o1xSkOxaYVdzpMADYJJZVv1eOhNnJxH6xJCmlJQrsVE4DPlFF Pv4S6bhFDvYbymyTmAzje06M57c2PCY1AItfz346Z1NGp0ql5FJ2XKDDQcTGeTO0YIzp /ryjkc7y2H42fWdFFYW1cd8HB9szGj+PGhyEi5zfjRWf+lbjH/ZsOM/Nwzw9qYT+/eHA toIfJhmyTTpy3vdS8sgIsEEEPfWWE9CsKbKtcVwMdBHRxrls7ahgyc/FAbIPMenXzm0Z B5ZmdYZEnORQ/YK2pBGHtSrjcOFSQBd6uCu+mSgiQnY1Br3cRwKmlGla6vl1JJMnMew9 9Y4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tjNQMGUb; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o20-v6si5141909pgh.319.2018.07.15.13.48.55; Sun, 15 Jul 2018 13:49:10 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tjNQMGUb; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728525AbeGOVLr (ORCPT + 99 others); Sun, 15 Jul 2018 17:11:47 -0400 Received: from mail-yw0-f196.google.com ([209.85.161.196]:40816 "EHLO mail-yw0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726900AbeGOVLr (ORCPT ); Sun, 15 Jul 2018 17:11:47 -0400 Received: by mail-yw0-f196.google.com with SMTP id p129-v6so13525582ywg.7; Sun, 15 Jul 2018 13:47:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Hxx88MyoNyP98DOrKEatgXfolbviUTzcRJ5klLW7Pw4=; b=tjNQMGUbvAXDvR4S8e7EXWj2Mk0GPyDVsMCQ1/1JbDzpNWIM7tk9cotSXBgqL27R50 Ns9NnJPFJqxdrD2pL0eog3QLD49kfLmHnv0vDLhMheNzaWHByrVHUtH4y6+gW9PGpGuR Kv53h+SrajUMAsPdm1X0B7kmfBjckVfHUJxkPbsrfvHIJN92n7NFI4KhvZWmTPWGIAaR E6fIOTa6TcV7y8dvW/AXCSb6qcCg7PQw2ydsGdVTMMtNFGb333A9Hc125Zfxferz9p68 yFdhsiEBlb5pln9NUBJFQsAsP2FpEBFp9013tb1waluh2oqYRwwthOVDHv7t/L5dOlR7 ubPg== 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=Hxx88MyoNyP98DOrKEatgXfolbviUTzcRJ5klLW7Pw4=; b=gZ8nVaQJXzWRqbQWCA1YvCzwhK1hI/HPpSkIW2JXAv4GP0QIkAWCZoJ7W1HN2b70ai qt6hpcuEPCcoQy1FhZ+shYVLHtGauOMoKzuxb8nBoqZgD8zHA9gFyxmnWrnMjlNxFYOo 8LQLdLgH+LozFQ+K3LoHW7XmS9HdXyUUPhrWl09lkeYVCQlnPs0MqO6zWd7qIppls4mc MyFdKnb6IPaJY+DoZc8hUIz57xnX53vX86rQRiZz53LSZ86a9ccR3BOGuAAobIyZGZ6C 8eqjuSCcBsOSWJWGCaWdzkuw0qlmCb9ODRSYbcHXGp5TtqtYKBgErL5e3nmnOTkybYNf DuVQ== X-Gm-Message-State: AOUpUlGy94yNFjBtHcCFsJiTtV/CHz08sTAL/Qn5cjb8o+XtCLoyN+Bq DF9G2QsYu/0g/R3tnWGhI48= X-Received: by 2002:a81:c74c:: with SMTP id i12-v6mr7003993ywl.477.1531687656715; Sun, 15 Jul 2018 13:47:36 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id g62-v6sm2003984ywa.29.2018.07.15.13.47.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Jul 2018 13:47:36 -0700 (PDT) From: William Breathitt Gray To: gregkh@linuxfoundation.org, jic23@kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, fabrice.gasnier@st.com, benjamin.gaignard@st.com, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, William Breathitt Gray Subject: [PATCH v8 11/11] iio: counter: Add deprecation markings for IIO Counter attributes Date: Sun, 15 Jul 2018 16:47:30 -0400 Message-Id: <8815656bba012cc91b8cd0802d744c54917b6f3d.1531685025.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The IIO counter subdirectory is now superceded by the Counter subsystem. This patch adds deprecation warnings to the documentation of the relevant IIO Counter sysfs attributes. Acked-by: Jonathan Cameron Signed-off-by: William Breathitt Gray --- Documentation/ABI/testing/sysfs-bus-iio | 8 ++++++++ .../ABI/testing/sysfs-bus-iio-counter-104-quad-8 | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index c7353030670a..fc50adf08e47 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -1649,6 +1649,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_countY_raw KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Raw counter device counts from channel Y. For quadrature counters, multiplication by an available [Y]_scale results in the counts of a single quadrature signal phase from channel Y. @@ -1657,6 +1659,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_indexY_raw KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Raw counter device index value from channel Y. This attribute provides an absolute positional reference (e.g. a pulse once per revolution) which may be used to home positional systems as @@ -1666,6 +1670,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_count_count_direction_available KernelVersion: 4.12 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + A list of possible counting directions which are: - "up" : counter device is increasing. - "down": counter device is decreasing. @@ -1674,4 +1680,6 @@ What: /sys/bus/iio/devices/iio:deviceX/in_countY_count_direction KernelVersion: 4.12 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + 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 7fac2c268d9a..bac3d0d48b7b 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8 +++ b/Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8 @@ -6,6 +6,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_index_synchronous_mode_available KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Discrete set of available values for the respective counter configuration are listed in this file. @@ -13,6 +15,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_countY_count_mode KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Count mode for channel Y. Four count modes are available: normal, range limit, non-recycle, and modulo-n. The preset value for channel Y is used by the count mode where required. @@ -47,6 +51,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_countY_noise_error KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Read-only attribute that indicates whether excessive noise is present at the channel Y count inputs in quadrature clock mode; irrelevant in non-quadrature clock mode. @@ -55,6 +61,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_countY_preset KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + If the counter device supports preset registers, the preset count for channel Y is provided by this attribute. @@ -62,6 +70,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_countY_quadrature_mode KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Configure channel Y counter for non-quadrature or quadrature clock mode. Selecting non-quadrature clock mode will disable synchronous load mode. In quadrature clock mode, the channel Y @@ -83,6 +93,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_countY_set_to_preset_on_index KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Whether to set channel Y counter with channel Y preset value when channel Y index input is active, or continuously count. Valid attribute values are boolean. @@ -91,6 +103,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_indexY_index_polarity KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Active level of channel Y index input; irrelevant in non-synchronous load mode. @@ -98,6 +112,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_indexY_synchronous_mode KernelVersion: 4.10 Contact: linux-iio@vger.kernel.org Description: + This interface is deprecated; please use the Counter subsystem. + Configure channel Y counter for non-synchronous or synchronous load mode. Synchronous load mode cannot be selected in non-quadrature clock mode. -- 2.18.0