On 12/01/2016 06:32 PM, John Muir wrote:
Add support for the TI TMP108 temperature sensor with some device configuration parameters. Signed-off-by: John Muir <john@xxxxxxxxx>
Nice job. Applied to -next, with a small fixup - see below. Thanks! Guenter
---
[ ... ]
+ +#ifdef CONFIG_OF +static const struct of_device_id tmp108_of_ids[] = { + { .compatible = "ti,tmp108", }, + {} +}; +MODULE_DEVICE_TABLE(of, tmp108_of_ids); +#endif + +static struct i2c_driver tmp108_driver = { + .driver.name = DRIVER_NAME, + .driver.pm = &tmp108_dev_pm_ops,
Made this .driver = { .name = DRIVER_NAME, .pm = &tmp108_dev_pm_ops, .of_match_table = of_match_ptr(tmp108_of_ids), },
+ .probe = tmp108_probe, + .id_table = tmp108_i2c_ids, +}; + +module_i2c_driver(tmp108_driver); + +MODULE_AUTHOR("John Muir <john@xxxxxxxxx>"); +MODULE_DESCRIPTION("Texas Instruments TMP108 temperature sensor driver"); +MODULE_LICENSE("GPL");
-- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html