Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5197068imm; Sun, 22 Jul 2018 15:54:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe+xigzoe89ztrr+VCNZqe+4+Idk7dRddvCAvCMKeBk0/3nmlwXP+8GRHuMydd0mgq5LxOr X-Received: by 2002:a63:8848:: with SMTP id l69-v6mr9783694pgd.377.1532300090773; Sun, 22 Jul 2018 15:54:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532300090; cv=none; d=google.com; s=arc-20160816; b=0dOb7uKDK8mJrENpijALQmb4bIXTXt9ZB55BWIV3EzeOW5WFYM1dXXDVJbxFuXxdzM Tdo7oi1Ey6sYmxRXk6CNg5M6sRwB+XRTVI2uhb2HhZ6RdFYtaonlYN9Ka8gCwYhEQNrT Vn6BoPjZncRtyAa9zCkC4E221UYjuWRhfCq/SqLZ13EkRSvkf8R+q+fm5B+Qt2/Mb0Tt hqlurmS84OmkYOxKB7ObfpgwiM5J7jdrhAaiTLPdRJco3bI6I3lWKPZZJS4Q8lQIFt0Q gIntAk7HoRpTQ6QP6lGjzyCWpuNHWcZT4/hqgaBIvennE+t2W2HMkUyD+7yzZh6gza/R ZEIA== 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=WtrM/1yZXUWUBPgjSl3uinm2kdNBYGgjwhfgxOazJGs=; b=PTt4USyP5QI3F8BHZurrG+0Zd7ARQn/stvfmlUHXez10b5+u68ldS27NsJzYXCzWgq OlFKH8IHPosKgxOMphfyUW14/JgdNF26FgDfm6CR20U37MLkvPR/l3GAK6srQ0lIAjLw 4ZPrY0pbsToLmySjUiWv1exaHd1EEl/I4QXQoPrkdCPYzg+hU8OJcQ0O2hhsBdYhARDk 2WeF4GHDK1R9ytQ+rE95uxHXCYdXI3ACRmqx3Sbm8TcEuLM/a2gF8VAn4QzZNP1XHz6u SEDY5Xw4HcDfoCpa5o0PtqYG7WQMZlgauwXzyIOXZ0tdm/98XM4LfTTr2izyKXzE5i7b 768A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sAkRb+9E; 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 u29-v6si6670527pga.29.2018.07.22.15.54.36; Sun, 22 Jul 2018 15:54:50 -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=sAkRb+9E; 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 S1731193AbeGVXua (ORCPT + 99 others); Sun, 22 Jul 2018 19:50:30 -0400 Received: from mail-yb0-f195.google.com ([209.85.213.195]:43876 "EHLO mail-yb0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730429AbeGVXua (ORCPT ); Sun, 22 Jul 2018 19:50:30 -0400 Received: by mail-yb0-f195.google.com with SMTP id x10-v6so6590254ybl.10; Sun, 22 Jul 2018 15:52:11 -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=WtrM/1yZXUWUBPgjSl3uinm2kdNBYGgjwhfgxOazJGs=; b=sAkRb+9E0iTBEfqm7nrl+mZVPDQvipKknZPxwLPEvrdf/kBO9zMIT30l/lARsQvfdf WgTMn7tdnIqr0s8TqcT3lQ1aHkYIM0FYTLiSxIErgNVm5HONQv4GP5XltxDWBKcgxPrp q3N89jA0bqghQevcKMasdYGdO2TRIRGFMcIyPhH/NWQS4Yi2YQLh4iQAcJt67oJ4ss0u d6lXWpI0UfGMhSYDP7OmXHaFUxZL6kD6thtxJIeoulh6BIf6onfWzJJ+9ek/G5W0KZjf QoiTLyG9FDwRJRSNvDYTyY4Dkf6YaVaUmmTqf89zBV8ixf9tMiWOwXf5dwCxGjsDHJqK zpdg== 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=WtrM/1yZXUWUBPgjSl3uinm2kdNBYGgjwhfgxOazJGs=; b=YG/TYvTiACXD2HRy9kli7/cnhbjxDKKp5j80j1m3iZci00KVWY2ykEx/n4mU+1pgkE h2bOOeC3Mr7vmdrXXieXFGKZHLBEGrXwtfuMQ8cl61NuRsBYEJBggNRZXeIUMVP9aJUl RYNIeA/2VGwRER6Cl0KI4avWNdKzEus1vyGb1qGxbn7bcgtp4fSS0sBUGiCGEFhWAdAn U1RWXRDsVGabcMSP5yu0kVdTZgqOG5wf+W0xkwW31hch7sM+mD4LKAs9kAz/imYun86Y tb+wiQqUtOwZ7Jq5mRO6l9n/aSZJkMzMKGj+wm2InJlzz4XIb9aL75hPDy0/AYZmhEkw d9zQ== X-Gm-Message-State: AOUpUlF41EdBhk9qOZ/9VH/mdlEW4fQfcnJE7Q44CeOctZKdFHNv9vuf 4w/BbI2dYN9ybamD57heGw4= X-Received: by 2002:a5b:607:: with SMTP id d7-v6mr5765670ybq.281.1532299930957; Sun, 22 Jul 2018 15:52:10 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id j8-v6sm582710ywj.6.2018.07.22.15.52.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jul 2018 15:52:10 -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, William Breathitt Gray Subject: [PATCH v9 11/11] iio: counter: Add deprecation markings for IIO Counter attributes Date: Sun, 22 Jul 2018 18:52:05 -0400 Message-Id: <2450136fe1f5e7f582af69b61e6e1efe0d582c41.1532298882.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 a5b4f223641d..06218a5ae10c 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -1652,6 +1652,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. @@ -1660,6 +1662,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 @@ -1669,6 +1673,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. @@ -1677,6 +1683,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.18.0