From patchwork Thu May 20 09:18:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 443185 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp2125778jac; Thu, 20 May 2021 02:48:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5gUSem0SpMzUVkgypu6jYS1Bqx7uP8Sxu+Udl9dVH4INRvyou3Fskz5QLZi3r6o4GRR7N X-Received: by 2002:a92:6902:: with SMTP id e2mr4629617ilc.172.1621504118353; Thu, 20 May 2021 02:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621504118; cv=none; d=google.com; s=arc-20160816; b=PzlO/sE4kwpekBQJwPZzU2obgeMiANLW2W4jpI6jZK9SmwXR6PfgaOs7xv/tDyng/5 g0SUrCU2tRo433zfYGwwXj6rBjad2VjOkz9caijQ+gRaCtm4Pcrow+qsEa7GkA2tkyQZ NfZ99zsacyOk4FeuJMipedTydrmseuzZEHy9pF2MKUyfyAt+sRchL/o82h6q18gcoY0T HTRK0MMKRFw4VbX1THX+ScFRoLF0/lLABRY//2zwWE7ztWW4hNWmrrHsEASeyoW1ibs6 0Y5fYHooCKs7q7MsYPkcmw1gHSMXjx4bLh5jzAjUIFGVXlEoA9/DuqVHus9ufN2z6eAR /JeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lAEESoj0Q2bOEsWLJU8DeW9YSTMekFaR5Oc74ZOeUHM=; b=negrdbWWwORLc0dRmXlVpfB2qUjFGOdmN549DhNF6hg4JCQHuMftphdYX9e1yMQ0rG lswvaFOVdj9PdnE8k1r6F5Ofmegy8GQvwRqRlbOkZgsrUvcFab5IoIR5xHEe6ixjkDLQ arB0SYUBWv5hYa5BKu7sn/QPV6Vz1DZ/CUo0CHIMIkIcjGiQsQHElFss0ZNLB3cg73Qn 5VhPPRQF0yKO4unssG6Hyl3ziiZkwFxHfnbTiZTSo+QICdZfbIUO+tlGJlsmRUeqJqi0 5SwwDObTq1ChnbA0tSzGGa5VzbhQIPDluWEyE/02jXKAWSrjgl7A0b7oinUZNs9jODvx DMzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BKQPjq0Z; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si2159015ilh.102.2021.05.20.02.48.37; Thu, 20 May 2021 02:48:38 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BKQPjq0Z; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234198AbhETJtB (ORCPT + 12 others); Thu, 20 May 2021 05:49:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:48004 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233863AbhETJq7 (ORCPT ); Thu, 20 May 2021 05:46:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B3C5461462; Thu, 20 May 2021 09:34:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503250; bh=mYw5oaIwwa34eVJfCI5ZeTCLCDbvAMXfqd1DVVts2no=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BKQPjq0ZpFbQT4RGjy8CQQF+8rUJ+SDZ3fNw6mDLjCEPkJGHkuiIIstGSkmlBySzu C4zqST8qTGvF5ADhmYSIhgY4cNyRFmDNW24xN9Pl9PtAy35Hdx6OFzT+wfaFFOqIFB 0HKOHRSIaSIzMuVtFASczfBucV/YvErs4IiEPSHY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Cameron , Stable@vger.kernel.org, Himanshu Jha , =?utf-8?q?Nuno_S=C3=A1?= , Alexandru Ardelean Subject: [PATCH 4.19 135/425] iio:accel:adis16201: Fix wrong axis assignment that prevents loading Date: Thu, 20 May 2021 11:18:24 +0200 Message-Id: <20210520092135.874872951@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Jonathan Cameron commit 4e102429f3dc62dce546f6107e34a4284634196d upstream. Whilst running some basic tests as part of writing up the dt-bindings for this driver (to follow), it became clear it doesn't actually load currently. iio iio:device1: tried to double register : in_incli_x_index adis16201 spi0.0: Failed to create buffer sysfs interfaces adis16201: probe of spi0.0 failed with error -16 Looks like a cut and paste / update bug. Fixes tag obviously not accurate but we don't want to bother carry thing back to before the driver moved out of staging. Fixes: 591298e54cea ("Staging: iio: accel: adis16201: Move adis16201 driver out of staging") Signed-off-by: Jonathan Cameron Cc: Cc: Himanshu Jha Cc: Nuno Sá Reviewed-by: Alexandru Ardelean Link: https://lore.kernel.org/r/20210321182956.844652-1-jic23@kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/iio/accel/adis16201.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/iio/accel/adis16201.c +++ b/drivers/iio/accel/adis16201.c @@ -216,7 +216,7 @@ static const struct iio_chan_spec adis16 ADIS_AUX_ADC_CHAN(ADIS16201_AUX_ADC_REG, ADIS16201_SCAN_AUX_ADC, 0, 12), ADIS_INCLI_CHAN(X, ADIS16201_XINCL_OUT_REG, ADIS16201_SCAN_INCLI_X, BIT(IIO_CHAN_INFO_CALIBBIAS), 0, 14), - ADIS_INCLI_CHAN(X, ADIS16201_YINCL_OUT_REG, ADIS16201_SCAN_INCLI_Y, + ADIS_INCLI_CHAN(Y, ADIS16201_YINCL_OUT_REG, ADIS16201_SCAN_INCLI_Y, BIT(IIO_CHAN_INFO_CALIBBIAS), 0, 14), IIO_CHAN_SOFT_TIMESTAMP(7) };