summaryrefslogtreecommitdiff
path: root/drivers/misc/lis3lv02d/lis3lv02d.h
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2012-09-27 00:58:16 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-27 01:15:55 +0400
commitcbac1a8b89452f378a17cc2c673aca0e53af684d (patch)
treec52184fb2ef4129bbf4ca8a8b9c280ee4e0fd8a7 /drivers/misc/lis3lv02d/lis3lv02d.h
parente2b2ed8365e040b274dd23bdabd34ec3b0e43137 (diff)
downloadlinux-cbac1a8b89452f378a17cc2c673aca0e53af684d.tar.xz
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.h4
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);