|
@@ -48,6 +48,7 @@
|
|
|
|
|
|
enum vcnl4000_device_ids {
|
|
enum vcnl4000_device_ids {
|
|
VCNL4000,
|
|
VCNL4000,
|
|
|
|
+ VCNL4010,
|
|
};
|
|
};
|
|
|
|
|
|
struct vcnl4000_data {
|
|
struct vcnl4000_data {
|
|
@@ -68,6 +69,8 @@ struct vcnl4000_chip_spec {
|
|
|
|
|
|
static const struct i2c_device_id vcnl4000_id[] = {
|
|
static const struct i2c_device_id vcnl4000_id[] = {
|
|
{ "vcnl4000", VCNL4000 },
|
|
{ "vcnl4000", VCNL4000 },
|
|
|
|
+ { "vcnl4010", VCNL4010 },
|
|
|
|
+ { "vcnl4020", VCNL4010 },
|
|
{ }
|
|
{ }
|
|
};
|
|
};
|
|
MODULE_DEVICE_TABLE(i2c, vcnl4000_id);
|
|
MODULE_DEVICE_TABLE(i2c, vcnl4000_id);
|
|
@@ -157,6 +160,12 @@ static const struct vcnl4000_chip_spec vcnl4000_chip_spec_cfg[] = {
|
|
.measure_light = vcnl4000_measure_light,
|
|
.measure_light = vcnl4000_measure_light,
|
|
.measure_proximity = vcnl4000_measure_proximity,
|
|
.measure_proximity = vcnl4000_measure_proximity,
|
|
},
|
|
},
|
|
|
|
+ [VCNL4010] = {
|
|
|
|
+ .prod = "VCNL4010/4020",
|
|
|
|
+ .init = vcnl4000_init,
|
|
|
|
+ .measure_light = vcnl4000_measure_light,
|
|
|
|
+ .measure_proximity = vcnl4000_measure_proximity,
|
|
|
|
+ },
|
|
};
|
|
};
|
|
|
|
|
|
static const struct iio_chan_spec vcnl4000_channels[] = {
|
|
static const struct iio_chan_spec vcnl4000_channels[] = {
|