Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: linux-4.1.3/drivers/input/misc/mpu3050.c
- ===================================================================
- --- linux-4.1.3.orig/drivers/input/misc/mpu3050.c
- +++ linux-4.1.3/drivers/input/misc/mpu3050.c
- @@ -463,12 +463,22 @@ static const struct of_device_id mpu3050
- };
- MODULE_DEVICE_TABLE(of, mpu3050_of_match);
- +#ifdef CONFIG_ACPI
- +static const struct acpi_device_id mpu3050_acpi_match[] = {
- + { "MPU3050", 0 },
- + { "INVN6500", 1 }, /* T300CHI */
- + { },
- +};
- +MODULE_DEVICE_TABLE(acpi, mpu3050_acpi_match);
- +#endif
- +
- static struct i2c_driver mpu3050_i2c_driver = {
- .driver = {
- .name = "mpu3050",
- .owner = THIS_MODULE,
- .pm = &mpu3050_pm,
- .of_match_table = mpu3050_of_match,
- + .acpi_match_table = ACPI_PTR(mpu3050_acpi_match),
- },
- .probe = mpu3050_probe,
- .remove = mpu3050_remove,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement