diff options
author | Daniel Mack <zonque@gmail.com> | 2012-09-26 22:58:16 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-26 23:15:55 +0200 |
commit | cbac1a8b89452f378a17cc2c673aca0e53af684d (patch) | |
tree | c52184fb2ef4129bbf4ca8a8b9c280ee4e0fd8a7 /drivers/misc/lis3lv02d/lis3lv02d.h | |
parent | lis3lv02d: fix some comments specific to lis331dlh driver (diff) | |
download | linux-cbac1a8b89452f378a17cc2c673aca0e53af684d.tar.xz linux-cbac1a8b89452f378a17cc2c673aca0e53af684d.zip |
drivers/misc/lis3lv02d: add generic DT matching code
Adds logic to parse lis3 properties from a device tree node and store them
in a freshly allocated lis3lv02d_platform_data.
Note that the actual match tables are left out here. This part should
happen in the drivers that bind to the individual busses (SPI/I2C/PCI).
Also adds some DT bindinds documentation.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Cc: Rob Herring <robherring2@gmail.com>
Cc: "AnilKumar, Chimata" <anilkumar@ti.com>
Reviewed-by: Éric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/lis3lv02d/lis3lv02d.h')
-rw-r--r-- | drivers/misc/lis3lv02d/lis3lv02d.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/misc/lis3lv02d/lis3lv02d.h b/drivers/misc/lis3lv02d/lis3lv02d.h index 387504a37937..2e0700baa584 100644 --- a/drivers/misc/lis3lv02d/lis3lv02d.h +++ b/drivers/misc/lis3lv02d/lis3lv02d.h @@ -314,6 +314,10 @@ struct lis3lv02d { struct lis3lv02d_platform_data *pdata; /* for passing board config */ struct mutex mutex; /* Serialize poll and selftest */ + +#ifdef CONFIG_OF + struct device_node *of_node; +#endif }; int lis3lv02d_init_device(struct lis3lv02d *lis3); |