]> 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>
Wed, 12 Sep 2012 07:08:37 +0000 (17:08 +1000)
commit2f2ff3cc8d930493f9a598b9192706c09403e12e
treebc8e45aed50245fbde5dcbef0ba3e76cb0a74719
parent231603b9f06f67fe236772af96c5369582415fe2
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