summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/ad7091r5.c
diff options
context:
space:
mode:
authorMarcelo Schmitt <marcelo.schmitt@analog.com>2023-12-19 21:28:05 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-12-26 16:41:36 +0100
commit6ff545a9b87cdc920ee9988fec2edae14c1f5ecb (patch)
tree99eea1d3d3738ecbd84f3ff5dc2491476e4f71ca /drivers/iio/adc/ad7091r5.c
parentiio: adc: ad7091r: Move chip init data to container struct (diff)
downloadlinux-6ff545a9b87cdc920ee9988fec2edae14c1f5ecb.tar.xz
linux-6ff545a9b87cdc920ee9988fec2edae14c1f5ecb.zip
iio: adc: ad7091r: Remove unneeded probe parameters
With the grouping of ad7091r initialization data and callbacks into the init_info struct, there is no more need to pass the device name and register map through probe function parameters as those will be available in the init_info object. Remove probe parameters that are not needed anymore. Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com> Link: https://lore.kernel.org/r/090a6b461410a374511a8c73659de28b2665f96b.1703013352.git.marcelo.schmitt1@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to '')
-rw-r--r--drivers/iio/adc/ad7091r5.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/adc/ad7091r5.c b/drivers/iio/adc/ad7091r5.c
index 4b8f9ba078eb..cb4c7865f0cc 100644
--- a/drivers/iio/adc/ad7091r5.c
+++ b/drivers/iio/adc/ad7091r5.c
@@ -64,14 +64,13 @@ static struct ad7091r_init_info ad7091r5_init_info = {
static int ad7091r5_i2c_probe(struct i2c_client *i2c)
{
- const struct i2c_device_id *id = i2c_client_get_device_id(i2c);
const struct ad7091r_init_info *init_info;
init_info = i2c_get_match_data(i2c);
if (!init_info)
return -EINVAL;
- return ad7091r_probe(&i2c->dev, id->name, init_info, NULL, i2c->irq);
+ return ad7091r_probe(&i2c->dev, init_info, i2c->irq);
}
static const struct of_device_id ad7091r5_dt_ids[] = {