]> 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>
Fri, 21 Sep 2012 01:01:59 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Sep 2012 08:46:32 +0000 (18:46 +1000)
commitc0d6e9467e49e03f703f8bb2c8b9bd6bb641c272
tree85cb6a9db91be1dbb2727878b0a8816c62d490f3
parent324a8c36d66ee72f2222e2e454c135f7d8441ecf
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