Skip to content

Commit

Permalink
spi: xcomm: remove i2c_set_clientdata()
Browse files Browse the repository at this point in the history
i2c_get_clientdata() is not being called anywhere so that we do not need
to set clientdata.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240705-dev-spi-xcomm-gpiochip-v2-3-b10842fc9636@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Nuno Sa authored and Mark Brown committed Jul 5, 2024
1 parent e8ba259 commit 5e7d475
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/spi/spi-xcomm.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ static int spi_xcomm_probe(struct i2c_client *i2c)
host->flags = SPI_CONTROLLER_HALF_DUPLEX;
host->transfer_one_message = spi_xcomm_transfer_one;
host->dev.of_node = i2c->dev.of_node;
i2c_set_clientdata(i2c, host);

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

0 comments on commit 5e7d475

Please sign in to comment.