File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -363,9 +363,31 @@ static int vcnl4000_probe(struct i2c_client *client,
363
363
return devm_iio_device_register (& client -> dev , indio_dev );
364
364
}
365
365
366
+ static const struct of_device_id vcnl_4000_of_match [] = {
367
+ {
368
+ .compatible = "vishay,vcnl4000" ,
369
+ .data = "VCNL4000" ,
370
+ },
371
+ {
372
+ .compatible = "vishay,vcnl4010" ,
373
+ .data = "VCNL4010" ,
374
+ },
375
+ {
376
+ .compatible = "vishay,vcnl4010" ,
377
+ .data = "VCNL4020" ,
378
+ },
379
+ {
380
+ .compatible = "vishay,vcnl4200" ,
381
+ .data = "VCNL4200" ,
382
+ },
383
+ {},
384
+ };
385
+ MODULE_DEVICE_TABLE (of , vcnl_4000_of_match );
386
+
366
387
static struct i2c_driver vcnl4000_driver = {
367
388
.driver = {
368
389
.name = VCNL4000_DRV_NAME ,
390
+ .of_match_table = vcnl_4000_of_match ,
369
391
},
370
392
.probe = vcnl4000_probe ,
371
393
.id_table = vcnl4000_id ,
You can’t perform that action at this time.
0 commit comments