File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -421,13 +421,22 @@ static const struct i2c_device_id dw9719_id_table[] = {
421421};
422422MODULE_DEVICE_TABLE (i2c , dw9719_id_table );
423423
424+ static const struct of_device_id dw9719_of_table [] = {
425+ { .compatible = "dongwoon,dw9718s" , .data = (const void * )DW9718S },
426+ { .compatible = "dongwoon,dw9719" , .data = (const void * )DW9719 },
427+ { .compatible = "dongwoon,dw9761" , .data = (const void * )DW9761 },
428+ { { 0 } }
429+ };
430+ MODULE_DEVICE_TABLE (of , dw9719_of_table );
431+
424432static DEFINE_RUNTIME_DEV_PM_OPS (dw9719_pm_ops , dw9719_suspend , dw9719_resume ,
425433 NULL) ;
426434
427435static struct i2c_driver dw9719_i2c_driver = {
428436 .driver = {
429437 .name = "dw9719" ,
430438 .pm = pm_sleep_ptr (& dw9719_pm_ops ),
439+ .of_match_table = dw9719_of_table ,
431440 },
432441 .probe = dw9719_probe ,
433442 .remove = dw9719_remove ,
You can’t perform that action at this time.
0 commit comments