diff options
author | Nuno Sa <nuno.sa@analog.com> | 2024-07-05 17:12:41 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-07-05 18:47:45 +0100 |
commit | 5e7d4755c58a347b4fe7663cef9b169b0965d09d (patch) | |
tree | 1e0e8a82d609300a824a605fbe1dbc05f77758ad /drivers/spi | |
parent | e8ba259764c745e7de20ec517ae920ecd491b687 (diff) |
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 <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>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-xcomm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-xcomm.c b/drivers/spi/spi-xcomm.c index 5bbc250bc053..1cd7d2b9e11c 100644 --- a/drivers/spi/spi-xcomm.c +++ b/drivers/spi/spi-xcomm.c @@ -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) |