]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/misc/lis3lv02d/lis3lv02d_i2c.c: add lis3lv02d device tree init
authorAnilKumar Ch <anilkumar@ti.com>
Wed, 26 Sep 2012 01:34:16 +0000 (11:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 26 Sep 2012 05:45:17 +0000 (15:45 +1000)
commitdbad260915ece0a8045fdd01abb2b0f343bfe532
tree75eb21d6606f40de1960cdaf4ecc1830629dfc7e
parentd8cfe176c3f31690a4eb828113c8044f75fe5a3e
drivers/misc/lis3lv02d/lis3lv02d_i2c.c: add lis3lv02d device tree init

Add lis3lv02d device tree initialization code/API to take pdata from
device node.  Also adds device tree init matching table support to
lis3lv02d_i2c driver.  If the driver data is passed from device tree, then
this driver picks up platform data from device node through common/generic
lis3lv02d.c driver.

Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
Cc: Eric Piel <eric.piel@tremplin-utc.net>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/devicetree/bindings/misc/lis302.txt
drivers/misc/lis3lv02d/lis3lv02d_i2c.c