]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/misc/lis3lv02d: add generic DT matching code
authorDaniel Mack <zonque@gmail.com>
Thu, 13 Sep 2012 01:01:03 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 20 Sep 2012 07:05:12 +0000 (17:05 +1000)
commitf2ab849a1b6431167ffb417260fd37a9f3eaa0c7
tree2f48927a6f4aef66117b01a35e3dad3fa2d345cb
parent90be9c356ac5748811284714fd3892fea8dbf0af
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>
Documentation/devicetree/bindings/misc/lis302.txt [new file with mode: 0644]
drivers/misc/lis3lv02d/lis3lv02d.c
drivers/misc/lis3lv02d/lis3lv02d.h