]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/misc/lis3lv02d: add generic DT matching code
authorDaniel Mack <zonque@gmail.com>
Fri, 7 Sep 2012 00:24:26 +0000 (10:24 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Sep 2012 05:36:25 +0000 (15:36 +1000)
commit414e1f712f41a7530b9f0ff017fb03e3d4343aef
treeb71a1250e4e7847e8bc43da2f982b68a90cfaae5
parent3d1afff295dd30e7c4d1f7f37d3659b7efc1aeb0
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