drivers/misc/lis3lv02d: add generic DT matching code
authorDaniel Mack <zonque@gmail.com>
Wed, 26 Sep 2012 20:58:16 +0000 (13:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2012 21:15:55 +0000 (14:15 -0700)
commitcbac1a8b89452f378a17cc2c673aca0e53af684d
treec52184fb2ef4129bbf4ca8a8b9c280ee4e0fd8a7
parente2b2ed8365e040b274dd23bdabd34ec3b0e43137
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>
Documentation/devicetree/bindings/misc/lis302.txt [new file with mode: 0644]
drivers/misc/lis3lv02d/lis3lv02d.c
drivers/misc/lis3lv02d/lis3lv02d.h