summaryrefslogtreecommitdiff
path: root/drivers/iio/light/cm3323.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/light/cm3323.c')
-rw-r--r--drivers/iio/light/cm3323.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/iio/light/cm3323.c b/drivers/iio/light/cm3323.c
index fd9a8c27de2e..79ad6e2209ca 100644
--- a/drivers/iio/light/cm3323.c
+++ b/drivers/iio/light/cm3323.c
@@ -214,8 +214,7 @@ static const struct iio_info cm3323_info = {
.attrs = &cm3323_attribute_group,
};
-static int cm3323_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int cm3323_probe(struct i2c_client *client)
{
struct cm3323_data *data;
struct iio_dev *indio_dev;
@@ -251,14 +250,14 @@ static int cm3323_probe(struct i2c_client *client,
}
static const struct i2c_device_id cm3323_id[] = {
- {"cm3323", 0},
- {}
+ { "cm3323" },
+ { }
};
MODULE_DEVICE_TABLE(i2c, cm3323_id);
static const struct of_device_id cm3323_of_match[] = {
{ .compatible = "capella,cm3323", },
- { /* sentinel */ }
+ { }
};
MODULE_DEVICE_TABLE(of, cm3323_of_match);