summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/adxl345_spi.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-02-22 12:00:04 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-02-26 22:11:05 +0300
commitc1db3d5cab03a79947736c44fd33f19f234b14a0 (patch)
tree8925b94ac9966772cd390c5037948ca49a59ea2a /drivers/iio/accel/adxl345_spi.c
parent024f5d4f0ac087f73732a3084bdea5029ab0ca6b (diff)
downloadlinux-c1db3d5cab03a79947736c44fd33f19f234b14a0.tar.xz
iio: accel: adxl345: Get rid of name parameter in adxl345_core_probe()
As a preparation to switch to use device properties, get rid of name parameter in adxl345_core_probe(). Instead, choose it based on the type. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Link: https://lore.kernel.org/r/20220222090009.2060-3-andriy.shevchenko@linux.intel.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel/adxl345_spi.c')
-rw-r--r--drivers/iio/accel/adxl345_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/accel/adxl345_spi.c b/drivers/iio/accel/adxl345_spi.c
index 72550132b1bb..34b7001d519f 100644
--- a/drivers/iio/accel/adxl345_spi.c
+++ b/drivers/iio/accel/adxl345_spi.c
@@ -34,7 +34,7 @@ static int adxl345_spi_probe(struct spi_device *spi)
if (IS_ERR(regmap))
return dev_err_probe(&spi->dev, PTR_ERR(regmap), "Error initializing regmap\n");
- return adxl345_core_probe(&spi->dev, regmap, id->driver_data, id->name);
+ return adxl345_core_probe(&spi->dev, regmap, id->driver_data);
}
static const struct spi_device_id adxl345_spi_id[] = {