Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1028791yba; Tue, 2 Apr 2019 00:21:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbmTFoKkcGLKC+k8896Zm7YLEi7O6H7jrtMJmX8zvkCXf3Mq66vrWDIlyrnGPHBs2LPPIY X-Received: by 2002:a17:902:2f43:: with SMTP id s61mr69456608plb.158.1554189670536; Tue, 02 Apr 2019 00:21:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554189670; cv=none; d=google.com; s=arc-20160816; b=Yj13gwKBH9eoUGNwoAHmoj4PNsJVOmWW4L1e9eDgOVY3K6v4hIyJ9ffRB8J61AsiaJ PSrAvsBfJbPfZmlQBLWBpbaShRxm2tj7nQyU6zsYR3B1PtYHG1cdL9DMx8eZ5xCSxDtS szmbTd83/Qlbx4/ptjyRhjVMjtI9fn0ksJZohDeAEQrF4j/xL0BPCugrKbCW45O38LTa xXwn0LnFj5ua/LBl2/RxRdHuGBbudq3eE12pJx9+t+5ZG6dTHRmz+OtviyV60X+QdtGG a5dgs6zBl8jb4XzogWmib9637pcYlOEgZXFL/1VQCumETDxAuUe8aunUIndeAMp3rCiJ 1USg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=svskp7QoINQnHTiaUtBOVYrxeQ5QnKH9lu/Zsj/N//s=; b=BS556zsZe/iB1vmkXEs6cIRtS25batb5h03tFh9XEUNB4juABb+MX7O2/RqwHuDqMd dOSOTqQflkw7+J3hflhq3k0o9K+Lsb9LLHISnpRHdggY+o/27r5Ryj/Bcn4f8PGJXNUR EsD/PIX0RSjM0PXVnA38Q5qg05fZZdTtCtbfE5pHAExRuqAqwDXOmvGgdGyC+9+qplbv FHb8JBKYTixk5UTtn34Bm6iE0ifazeCl87yOQNbsioLa8nmAmcqfPMqbrLO78hDYtjcn uOapN1OrNFhp1kXikilttDolZT3Gx6/qydzonGqvEBgqDUeURSrG9y9/UBfAIYQMl7Dc 3T/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Hw0WAlbz; 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 l11si6302327pgg.554.2019.04.02.00.20.55; Tue, 02 Apr 2019 00:21: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=Hw0WAlbz; 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 S1729228AbfDBGcD (ORCPT + 99 others); Tue, 2 Apr 2019 02:32:03 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:35049 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726193AbfDBGcD (ORCPT ); Tue, 2 Apr 2019 02:32:03 -0400 Received: by mail-pf1-f196.google.com with SMTP id t21so5838251pfe.2; Mon, 01 Apr 2019 23:32:02 -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 :mime-version:content-transfer-encoding; bh=svskp7QoINQnHTiaUtBOVYrxeQ5QnKH9lu/Zsj/N//s=; b=Hw0WAlbzJsmhP/ZYLuuqIDUxu8G91MVcKWTy8fa0ekMx9gr12t/mcsw+A/DP3DhX1V l0z7FVWuNOvDfauDl3dtlj+/an3Iqrcik8h3WndhibdoAcfoZYK++qaNK42nkktj9x1G xejGpkYQAtWcYuh8kQHxqskYXrU315oP13Ozm/sZMMEz5mpGS8UTLSq83L/utKKEZ2WJ inm0ADGLe+ytH4kkWyCbsdw9EhL3/0YoBF61lb3nIf+1/yg/qdiouCWYvyIDtkg4m8hd 1b+EhkO0NrqhAPzigiqPz+4ppE2FTZO9pf9hnjJZAyzq95HCzqUztHYKkJNvP5uyazfv vkEw== 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:mime-version:content-transfer-encoding; bh=svskp7QoINQnHTiaUtBOVYrxeQ5QnKH9lu/Zsj/N//s=; b=seNspA/EN/t7Joe9bAm1r79Wa3DYHX8U9rm+akj+BWSuliF07uEwiIo7FQEKbb7afO s/oP951TJtVs9BqjETC5VHLfUNMEHgweLdWISzOgO48hDFoea6L0jNmA2HTV3Sjcnj9b nFePuXGdcx1RQ+M6suKCvou9IcnZLENz6eBf4yR/nubfKtyner/n3RjE3z1CAw/Ci3Qj QkKiEMjTMSOXT9Vjh0gg2ZnYf5IDYCyxyXuRujhIWm81F76ntM5rYC4SHxbOUhrefn+L BvuZGOj5WaKIKsmeZi4j6bNY9I3NtnsrbxpwkYcpH6hxjW5fZQAzbiRwM9mFet/g/0CQ TTeQ== X-Gm-Message-State: APjAAAVg676L0s8eWZ5IenKnposfohyjhEpur4gZw/bKnYF3ybFQ76Ot DirhQ6T7LzGsFHtPYS8QtUE= X-Received: by 2002:a62:ae13:: with SMTP id q19mr65909898pff.152.1554186722023; Mon, 01 Apr 2019 23:32:02 -0700 (PDT) Received: from localhost.localdomain ([2001:268:c0a5:4ce0:c70:4af9:86e2:2]) by smtp.gmail.com with ESMTPSA id a17sm19327289pfj.123.2019.04.01.23.31.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 23:32:01 -0700 (PDT) From: William Breathitt Gray To: gregkh@linuxfoundation.org Cc: jic23@kernel.org, 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, akpm@linux-foundation.org, david@lechnology.com, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, leoyang.li@nxp.com, daniel.lezcano@linaro.org, tglx@linutronix.de, thierry.reding@gmail.com, esben@haabendal.dk, linux-pwm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, patrick.havelange@essensium.com, William Breathitt Gray , Jonathan Cameron Subject: [PATCH v10 11/18] iio: counter: Add deprecation markings for IIO Counter attributes Date: Tue, 2 Apr 2019 15:30:46 +0900 Message-Id: <997556b04cbc210adf1cd202114f5064ec7bb9dd.1554184734.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 864f8efd12e5..6aef7dbbde44 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -1656,6 +1656,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. @@ -1664,6 +1666,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 @@ -1673,6 +1677,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. @@ -1681,6 +1687,8 @@ 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. What: /sys/bus/iio/devices/iio:deviceX/in_phaseY_raw 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.21.0