]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: mcp3564: drop redundant open-coded spi_get_device_match_data()
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 6 Jun 2024 14:26:50 +0000 (16:26 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 13 Jun 2024 18:19:24 +0000 (19:19 +0100)
commitbf977499c10667deb38f85dd4d0f287b0133ab54
tree2cbb6dbcfedef75a6b7c5c0c2a22e587c13265cf
parent2ac3ce8afd5f2d3bc0271e76e4d005d62594090e
iio: adc: mcp3564: drop redundant open-coded spi_get_device_match_data()

The driver calls spi_get_device_match_data() and on its failure calls
again parts of it: spi_get_device_id() and getting driver data.  This is
entirely redundant, because it is part of spi_get_device_match_data().

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240606-spi-match-data-v1-8-320b291ee1fe@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/mcp3564.c