1
0
Fork 0

wacom_12c: Port wacom_i2c to device tree

eirik/updates-from-linux-fsl
Martin T. H. Sandsmark 2016-07-27 12:08:14 +02:00 committed by Eirik Schultz
parent 8c0154cbcf
commit d898c85bcb
No known key found for this signature in database
GPG Key ID: CA85F5BFB83767F3
1 changed files with 12 additions and 0 deletions

View File

@ -18,6 +18,7 @@
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/gpio.h>
#include <linux/of.h>
#include <asm/unaligned.h>
#define WACOM_CMD_QUERY0 0x04
@ -268,10 +269,21 @@ static const struct i2c_device_id wacom_i2c_id[] = {
};
MODULE_DEVICE_TABLE(i2c, wacom_i2c_id);
#ifdef CONFIG_OF
static const struct of_device_id wacom_i2c_of_match_table[] = {
{ .compatible = "wacom,wacom-i2c" },
{}
};
MODULE_DEVICE_TABLE(of, wacom_i2c_of_match_table);
#endif
static struct i2c_driver wacom_i2c_driver = {
.driver = {
.name = "wacom_i2c",
.pm = &wacom_i2c_pm,
#ifdef CONFIG_OF
.of_match_table = of_match_ptr(wacom_i2c_of_match_table),
#endif
},
.probe = wacom_i2c_probe,