]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: accel: adxl355: simplify with spi_get_device_match_data()
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 6 Jun 2024 14:26:44 +0000 (16:26 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 13 Jun 2024 18:19:23 +0000 (19:19 +0100)
commiteafc2664be3adecf6a1902e4a58ac0719b62341c
tree6c3361b82fc0e9ca9f8273cc54f3d0ca7d4e0807
parentd6e3ee74d16f2faef0cbe0251071076e0654e68a
iio: accel: adxl355: simplify with spi_get_device_match_data()

Use spi_get_device_match_data() helper to simplify a bit the driver.

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-2-320b291ee1fe@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl355_spi.c