[PATCH 05/10] iio: imu: Replace spi->chip_select references to spi->chip_select[0]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: [PATCH 05/10] iio: imu: Replace spi->chip_select references to spi->chip_select[0]
- From: Amit Kumar Mahapatra <amit.kumar-mahapatra@xxxxxxx>
- Date: Mon, 17 Oct 2022 17:42:44 +0530
- Cc: <git@xxxxxxx>, <linux-spi@xxxxxxxxxxxxxxx>, <linux-kernel@xxxxxxxxxxxxxxx>, <joel@xxxxxxxxx>, <andrew@xxxxxxxx>, <radu_nicolae.pirea@xxxxxx>, <nicolas.ferre@xxxxxxxxxxxxx>, <alexandre.belloni@xxxxxxxxxxx>, <claudiu.beznea@xxxxxxxxxxxxx>, <bcm-kernel-feedback-list@xxxxxxxxxxxx>, <fancer.lancer@xxxxxxxxx>, <kernel@xxxxxxxxxxxxxx>, <festevam@xxxxxxxxx>, <linux-imx@xxxxxxx>, <jbrunet@xxxxxxxxxxxx>, <martin.blumenstingl@xxxxxxxxxxxxxx>, <avifishman70@xxxxxxxxx>, <tmaimon77@xxxxxxxxx>, <tali.perry1@xxxxxxxxx>, <venture@xxxxxxxxxx>, <yuenn@xxxxxxxxxx>, <benjaminfair@xxxxxxxxxx>, <yogeshgaur.83@xxxxxxxxx>, <konrad.dybcio@xxxxxxxxxxxxxx>, <alim.akhtar@xxxxxxxxxxx>, <ldewangan@xxxxxxxxxx>, <thierry.reding@xxxxxxxxx>, <jonathanh@xxxxxxxxxx>, <michal.simek@xxxxxxx>, <linux-aspeed@xxxxxxxxxxxxxxxx>, <openbmc@xxxxxxxxxxxxxxxx>, <linux-arm-kernel@xxxxxxxxxxxxxxxxxxx>, <linux-rpi-kernel@xxxxxxxxxxxxxxxxxxx>, <linux-amlogic@xxxxxxxxxxxxxxxxxxx>, <linux-mediatek@xxxxxxxxxxxxxxxxxxx>, <linux-arm-msm@xxxxxxxxxxxxxxx>, <linux-rockchip@xxxxxxxxxxxxxxxxxxx>, <linux-samsung-soc@xxxxxxxxxxxxxxx>, <linux-stm32@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, <linux-sunxi@xxxxxxxxxxxxxxx>, <linux-tegra@xxxxxxxxxxxxxxx>, <netdev@xxxxxxxxxxxxxxx>, <linux-wpan@xxxxxxxxxxxxxxx>, <libertas-dev@xxxxxxxxxxxxxxxxxxx>, <linux-wireless@xxxxxxxxxxxxxxx>, <linux-mtd@xxxxxxxxxxxxxxxxxxx>, <lars@xxxxxxxxxx>, <Michael.Hennerich@xxxxxxxxxx>, <linux-iio@xxxxxxxxxxxxxxx>, <michael@xxxxxxxx>, <akumarma@xxxxxxx>, <amitrkcian2002@xxxxxxxxx>, Amit Kumar Mahapatra <amit.kumar-mahapatra@xxxxxxx>
- In-reply-to: <20221017121249.19061-1-amit.kumar-mahapatra@amd.com>
- References: <20221017121249.19061-1-amit.kumar-mahapatra@amd.com>
For adding multi CS support & to prevent any existing driver from
breaking, replaced all spi->chip_select references to spi->chip_slect[0].
Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@xxxxxxx>
---
drivers/iio/imu/adis16400.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/imu/adis16400.c b/drivers/iio/imu/adis16400.c
index 17bb0c40a149..aa7bfcee3510 100644
--- a/drivers/iio/imu/adis16400.c
+++ b/drivers/iio/imu/adis16400.c
@@ -466,7 +466,7 @@ static int adis16400_initial_setup(struct iio_dev *indio_dev)
dev_info(&indio_dev->dev, "%s: prod_id 0x%04x at CS%d (irq %d)\n",
indio_dev->name, prod_id,
- st->adis.spi->chip_select, st->adis.spi->irq);
+ st->adis.spi->chip_select[0], st->adis.spi->irq);
}
/* use high spi speed if possible */
if (st->variant->flags & ADIS16400_HAS_SLOW_MODE) {
--
2.17.1
[Index of Archives]
[Linux Kernel]
[Linux ARM (vger)]
[Linux ARM MSM]
[Linux Omap]
[Linux Arm]
[Linux Tegra]
[Fedora ARM]
[Linux for Samsung SOC]
[eCos]
[Linux Fastboot]
[Gcc Help]
[Git]
[DCCP]
[IETF Announce]
[Security]
[Linux MIPS]
[Yosemite Campsites]
|