From patchwork Mon Jan 23 21:17:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 646228 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56BD2C05027 for ; Mon, 23 Jan 2023 21:04:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232564AbjAWVEi (ORCPT ); Mon, 23 Jan 2023 16:04:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232888AbjAWVEe (ORCPT ); Mon, 23 Jan 2023 16:04:34 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4099737F3E; Mon, 23 Jan 2023 13:04:31 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C03FA6109A; Mon, 23 Jan 2023 21:04:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92E1FC4339E; Mon, 23 Jan 2023 21:04:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674507870; bh=SwYXs9I2ta5OOSwgF/OPkPmKgovgrvcG9ebNwU0ipZg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fWaSQD9ikHr0APAlpezk0/E8nTE6nDYbWuaX2PdMSDmVKIFGB3VAl8GN9Uwxdzups oPmW5jVILTvftCVoUXTugx3PFjaJPjKnPjKGH6rirxNdwFDNBFG+xY4FcujQ4xRq24 FjYGbpgz2wyc/fmFtZJFOlcf3yXKvzmVpWqPAT9otPuov3IVru9jUNou2hGjqj/fD/ IBp5AAeZg+M8KoRcJ1+GdrMizx3ijCUW82AHgoHTWo5GvEo97lRFfeaFjM47HVhdCv Md4r7ee6unrAIdmeKPuqY+vo/eVMWWcPTi9BJKtf4S70s1FFasyb/2e/cnk2oKq33W aTjlfYxgxMwAA== From: Jonathan Cameron To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Barry Song Subject: [PATCH 04/12] staging: iio: accel: adis16203: Drop the 180 degree offset channel Date: Mon, 23 Jan 2023 21:17:50 +0000 Message-Id: <20230123211758.563383-5-jic23@kernel.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230123211758.563383-1-jic23@kernel.org> References: <20230123211758.563383-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron There is no standard ABI suitable for this channel, which is blocking the graduation of this driver from staging. It provides no obvious benefit over applying a -180 degree offset in software. So drop the channel. Signed-off-by: Jonathan Cameron --- drivers/staging/iio/accel/adis16203.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/iio/accel/adis16203.c b/drivers/staging/iio/accel/adis16203.c index 8e5d1d2ea8e9..b59a003f3e26 100644 --- a/drivers/staging/iio/accel/adis16203.c +++ b/drivers/staging/iio/accel/adis16203.c @@ -59,7 +59,6 @@ enum adis16203_scan { ADIS16203_SCAN_INCLI_X, - ADIS16203_SCAN_INCLI_Y, ADIS16203_SCAN_SUPPLY, ADIS16203_SCAN_AUX_ADC, ADIS16203_SCAN_TEMP, @@ -140,11 +139,8 @@ static const struct iio_chan_spec adis16203_channels[] = { ADIS_AUX_ADC_CHAN(ADIS16203_AUX_ADC, ADIS16203_SCAN_AUX_ADC, 0, 12), ADIS_INCLI_CHAN(X, ADIS16203_INCL_OUT, ADIS16203_SCAN_INCLI_X, BIT(IIO_CHAN_INFO_CALIBBIAS), 0, 14), - /* Fixme: Not what it appears to be - see data sheet */ - ADIS_INCLI_CHAN(Y, ADIS16203_INCL_OUT_180, ADIS16203_SCAN_INCLI_Y, - 0, 0, 14), ADIS_TEMP_CHAN(ADIS16203_TEMP_OUT, ADIS16203_SCAN_TEMP, 0, 12), - IIO_CHAN_SOFT_TIMESTAMP(5), + IIO_CHAN_SOFT_TIMESTAMP(4), }; static const struct iio_info adis16203_info = {