Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2312563imm; Wed, 16 May 2018 10:54:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrCRD4NS08Q2hje6sj8FJ2dMuow+tT1SWXgIRqJVpyC+b595pvLGA71eqjpsI73rE6ZWjOC X-Received: by 2002:a63:6945:: with SMTP id e66-v6mr1505402pgc.306.1526493293780; Wed, 16 May 2018 10:54:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526493293; cv=none; d=google.com; s=arc-20160816; b=j72t7sQS1hgMksdctj+1Qya6jZWGQ9V0lXMFupc/6mTAqL0rgCARKy2eiiY2yCDSv/ 7MuW6onY54tjV7m1I3G3FcW+s6X3PNNZz0uzrx86KTklhVooTGqO0sjc04s8tj5oKSnD E4+5aDqphdjTi0bPdp9wzBtK4FEnY+bG4mpW4iDiQUJW68eg5ERYFC/pvWv2ub+w6yvi Q5vvfD9YvsstuCB8YZmA/xj8KdxNMAhp1eFkl14zUtMdnX/qdY115APxtgvZRxGXYaXY S//Tep9eKqr9cr8oVqFqj0RZol59gAQliwB8n4k1QQhShUWRBtDLgJvWF5ZE4m6bIdvs prfQ== 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=Tl9u4FvghcBsb6uRD72bjDFSIcB42lQCN3beqXdtV9U=; b=FN8+PBXIUDyJrVIWWb/CscGmRu4FSXgv+niNgyODOKVPOht7rWbWfW4hOT94xCXcA9 OyyoolzESuzyAsw/PlZn1hKj0nDluRnZ8gr13/nnxg1/5aOXnaYK0j1MwldQV/ZQOIWt ohXfzC0tFqGWwAWP77I7vk6AiPyxWYBzgva1LHISTqBKw7K6pFY0eG+iayAq/IgzWGvN Tv/Dm5cikZOKBhGa0HAdpXAKAiuuURhrp81Mk7xwbK5dkxjwBZVtfE//u3Me2xU4b1nZ I4grdwfdRKxlN6M2IPseBsHqwUxwO5ZCuAMStShE787dlDM6fgCnt371uybPuubBZPL5 Wl2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MQO5gcya; 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 b5-v6si3085379ple.417.2018.05.16.10.54.39; Wed, 16 May 2018 10:54:53 -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=MQO5gcya; 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 S1752417AbeEPRws (ORCPT + 99 others); Wed, 16 May 2018 13:52:48 -0400 Received: from mail-yw0-f194.google.com ([209.85.161.194]:36067 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751980AbeEPRwq (ORCPT ); Wed, 16 May 2018 13:52:46 -0400 Received: by mail-yw0-f194.google.com with SMTP id l15-v6so498980ywk.3; Wed, 16 May 2018 10:52:45 -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=Tl9u4FvghcBsb6uRD72bjDFSIcB42lQCN3beqXdtV9U=; b=MQO5gcyaDmBEKBHw2F0s96ysccbYSQT11jTAwhWZGWrUkGgR35lJFznpbrl3zWkYpt BMB3J6yf/K+cHQXi8xydAT90THWDN+T32qVpYNOda7775dBwClwbugb0VggP/y4iVpv2 BNWB9EQEw9474BkxyNv5FIgulaNA9FBiVC/lIjoE4C3lJXFStzgjAL/WaqLFYrL4VeTb 3z34xH2cdp3UXtS2pxCV3jj60+INn7mgWfPvAZ9WaVEcxPfe05kYy43WkWGaO1WibzaQ 5f6QpWHB0G9J+iCn/LL8aqo2Dq1XDJXlkqzUrcDtlWuut0ycgqJ2MOofW5nUItnVzmSh Xddw== 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=Tl9u4FvghcBsb6uRD72bjDFSIcB42lQCN3beqXdtV9U=; b=WN1lJnVVMFcHKmrtpcYLf8Q1nKQprDl0tK8GXC1Ra4D5MFg2v/9caoSvEdpooDOHAJ KYTAvJh7qMVjKOKajClNiwDEYNQZ8UGD5VDunLe/pR/K1AXXK9J6AaqvHtw/f2Pult7T Ciyjm97w4YR1I7yZlXjjDXyeNUtvDMWi31DiKLjqTq5Xp7Y3GlIiZlx8PkUCPIn1KvCB i/tOAya/wHjw/YnAjYgDQIN9l1pTb6ZxO3wbHU4jQy68FcslL0Kz4NubKTo4OoQRkoEx uhycwQEXzjNrqGvanq9GcVWwsB5e8bi3wqJVSYInbcstG3stY4yv5GczHgasm0d1WbEW votg== X-Gm-Message-State: ALKqPwfh9yqwfo+ASaUqLes3ty6qQkuJnO3tEV6JmAxc0+OXZZSrnG4S JUBkirNxovHGYwcIBR67Xqc= X-Received: by 2002:a81:a4cd:: with SMTP id b196-v6mr997945ywh.137.1526493165315; Wed, 16 May 2018 10:52:45 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id l126-v6sm1231620ywb.67.2018.05.16.10.52.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 May 2018 10:52:44 -0700 (PDT) From: William Breathitt Gray To: jic23@kernel.org Cc: benjamin.gaignard@st.com, fabrice.gasnier@st.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, William Breathitt Gray Subject: [PATCH v6 9/9] iio: counter: Remove IIO counter subdirectory Date: Wed, 16 May 2018 13:52:39 -0400 Message-Id: <4c335e0eebfbaf6e86f41e0f2864d76993d90b13.1526487615.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch removes the IIO counter subdirectory which is now superceded by the Counter subsystem. Deprecation warnings are added to the documentation of the relevant IIO counter sysfs attributes. Signed-off-by: William Breathitt Gray --- Documentation/ABI/testing/sysfs-bus-iio | 8 ++++++++ .../ABI/testing/sysfs-bus-iio-counter-104-quad-8 | 16 ++++++++++++++++ drivers/iio/Kconfig | 1 - drivers/iio/Makefile | 1 - drivers/iio/counter/Kconfig | 8 -------- drivers/iio/counter/Makefile | 5 ----- 6 files changed, 24 insertions(+), 15 deletions(-) delete mode 100644 drivers/iio/counter/Kconfig delete mode 100644 drivers/iio/counter/Makefile diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index 731146c3b138..6115d97b075e 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -1637,6 +1637,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. @@ -1645,6 +1647,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 @@ -1654,6 +1658,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. @@ -1662,4 +1668,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. diff --git a/drivers/iio/Kconfig b/drivers/iio/Kconfig index d69e85a8bdc3..1152efad91a1 100644 --- a/drivers/iio/Kconfig +++ b/drivers/iio/Kconfig @@ -74,7 +74,6 @@ source "drivers/iio/afe/Kconfig" source "drivers/iio/amplifiers/Kconfig" source "drivers/iio/chemical/Kconfig" source "drivers/iio/common/Kconfig" -source "drivers/iio/counter/Kconfig" source "drivers/iio/dac/Kconfig" source "drivers/iio/dummy/Kconfig" source "drivers/iio/frequency/Kconfig" diff --git a/drivers/iio/Makefile b/drivers/iio/Makefile index d8cba9c229c0..7bdd31f1b88f 100644 --- a/drivers/iio/Makefile +++ b/drivers/iio/Makefile @@ -20,7 +20,6 @@ obj-y += amplifiers/ obj-y += buffer/ obj-y += chemical/ obj-y += common/ -obj-y += counter/ obj-y += dac/ obj-y += dummy/ obj-y += gyro/ diff --git a/drivers/iio/counter/Kconfig b/drivers/iio/counter/Kconfig deleted file mode 100644 index 95a7a0df6cac..000000000000 --- a/drivers/iio/counter/Kconfig +++ /dev/null @@ -1,8 +0,0 @@ -# -# Counter devices -# -# When adding new entries keep the list in alphabetical order - -menu "Counters" - -endmenu diff --git a/drivers/iio/counter/Makefile b/drivers/iio/counter/Makefile deleted file mode 100644 index 8fd3d954775a..000000000000 --- a/drivers/iio/counter/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# -# Makefile for IIO counter devices -# - -# When adding new entries keep the list in alphabetical order -- 2.17.0