diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/spi/spi-sc18is602.c | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
Diffstat (limited to 'drivers/spi/spi-sc18is602.c')
| -rw-r--r-- | drivers/spi/spi-sc18is602.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/spi-sc18is602.c b/drivers/spi/spi-sc18is602.c index 983b3621bc2a..70012333020b 100644 --- a/drivers/spi/spi-sc18is602.c +++ b/drivers/spi/spi-sc18is602.c @@ -70,7 +70,7 @@ static int sc18is602_txrx(struct sc18is602 *hw, struct spi_message *msg,  	if (hw->tlen == 0) {  		/* First byte (I2C command) is chip select */ -		hw->buffer[0] = 1 << msg->spi->chip_select; +		hw->buffer[0] = 1 << spi_get_chipselect(msg->spi, 0);  		hw->tlen = 1;  		hw->rindex = 0;  	} @@ -229,7 +229,7 @@ static int sc18is602_setup(struct spi_device *spi)  	struct sc18is602 *hw = spi_master_get_devdata(spi->master);  	/* SC18IS602 does not support CS2 */ -	if (hw->id == sc18is602 && spi->chip_select == 2) +	if (hw->id == sc18is602 && (spi_get_chipselect(spi, 0) == 2))  		return -ENXIO;  	return 0; @@ -315,7 +315,7 @@ static const struct i2c_device_id sc18is602_id[] = {  };  MODULE_DEVICE_TABLE(i2c, sc18is602_id); -static const struct of_device_id sc18is602_of_match[] = { +static const struct of_device_id sc18is602_of_match[] __maybe_unused = {  	{  		.compatible = "nxp,sc18is602",  		.data = (void *)sc18is602  |