Skip to content

Commit 5e7d475

Browse files
nunojsabroonie
authored andcommitted
spi: xcomm: remove i2c_set_clientdata()
i2c_get_clientdata() is not being called anywhere so that we do not need to set clientdata. Signed-off-by: Nuno Sa <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent e8ba259 commit 5e7d475

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/spi/spi-xcomm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ static int spi_xcomm_probe(struct i2c_client *i2c)
261261
host->flags = SPI_CONTROLLER_HALF_DUPLEX;
262262
host->transfer_one_message = spi_xcomm_transfer_one;
263263
host->dev.of_node = i2c->dev.of_node;
264-
i2c_set_clientdata(i2c, host);
265264

266265
ret = devm_spi_register_controller(&i2c->dev, host);
267266
if (ret < 0)

0 commit comments

Comments
 (0)