iio: accel: adxl345: Get rid of name parameter in adxl345_core_probe()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 22 Feb 2022 09:00:04 +0000 (11:00 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 26 Feb 2022 19:11:05 +0000 (19:11 +0000)
commitc1db3d5cab03a79947736c44fd33f19f234b14a0
tree8925b94ac9966772cd390c5037948ca49a59ea2a
parent024f5d4f0ac087f73732a3084bdea5029ab0ca6b
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>
drivers/iio/accel/adxl345.h
drivers/iio/accel/adxl345_core.c
drivers/iio/accel/adxl345_i2c.c
drivers/iio/accel/adxl345_spi.c