Commit 5e7d4755 authored by Nuno Sa's avatar Nuno Sa Committed by Mark Brown

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: default avatarNuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240705-dev-spi-xcomm-gpiochip-v2-3-b10842fc9636@analog.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent e8ba2597
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment