]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/misc/lis3lv02d: add generic DT matching code
authorDaniel Mack <zonque@gmail.com>
Fri, 21 Sep 2012 01:01:56 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Sep 2012 08:46:31 +0000 (18:46 +1000)
commitb5751a1f9c9b5cf0b6e17eea5b08cd43eb5fe0e7
treedcad95c1a2c6bba9286eeb92486962464dda26e8
parent640ad502553d13f9a30f467e14cc90c2730eb709
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