Commit ab5b9492 authored by Peter Meerwald-Stadler's avatar Peter Meerwald-Stadler Committed by Jonathan Cameron

staging: iio: isl29018: Remove excessive output messages

Signed-off-by: default avatarPeter Meerwald-Stadler <pmeerw@pmeerw.net>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 13e6d634
...@@ -341,10 +341,8 @@ static ssize_t store_prox_infrared_suppression(struct device *dev, ...@@ -341,10 +341,8 @@ static ssize_t store_prox_infrared_suppression(struct device *dev,
if (kstrtoint(buf, 10, &val)) if (kstrtoint(buf, 10, &val))
return -EINVAL; return -EINVAL;
if (!(val == 0 || val == 1)) { if (!(val == 0 || val == 1))
dev_err(dev, "The mode is not supported\n");
return -EINVAL; return -EINVAL;
}
/* /*
* get the "proximity scheme" i.e. if the chip does on chip * get the "proximity scheme" i.e. if the chip does on chip
...@@ -727,10 +725,8 @@ static int isl29018_probe(struct i2c_client *client, ...@@ -727,10 +725,8 @@ static int isl29018_probe(struct i2c_client *client,
int dev_id = 0; int dev_id = 0;
indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*chip)); indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*chip));
if (!indio_dev) { if (!indio_dev)
dev_err(&client->dev, "iio allocation fails\n");
return -ENOMEM; return -ENOMEM;
}
chip = iio_priv(indio_dev); chip = iio_priv(indio_dev);
i2c_set_clientdata(client, indio_dev); i2c_set_clientdata(client, indio_dev);
...@@ -770,13 +766,7 @@ static int isl29018_probe(struct i2c_client *client, ...@@ -770,13 +766,7 @@ static int isl29018_probe(struct i2c_client *client,
indio_dev->name = name; indio_dev->name = name;
indio_dev->dev.parent = &client->dev; indio_dev->dev.parent = &client->dev;
indio_dev->modes = INDIO_DIRECT_MODE; indio_dev->modes = INDIO_DIRECT_MODE;
err = devm_iio_device_register(&client->dev, indio_dev); return devm_iio_device_register(&client->dev, indio_dev);
if (err) {
dev_err(&client->dev, "iio registration fails\n");
return err;
}
return 0;
} }
#ifdef CONFIG_PM_SLEEP #ifdef CONFIG_PM_SLEEP
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment