]> Pileus Git - ~andy/linux/commit
mfd: tps6586x: Add version detection
authorStefan Agner <stefan@agner.ch>
Fri, 6 Dec 2013 12:51:45 +0000 (13:51 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 21 Jan 2014 08:28:01 +0000 (08:28 +0000)
commite0a3da80c65dc427c30829eb3e361507f843778f
tree433fe00ea3f9f7f7ad0887ba13067bc92620b052
parentaf66b3c0934e350059646651958306565313e145
mfd: tps6586x: Add version detection

Use the VERSIONCRC to determine the exact device version. According to
the datasheet this register can be used as device identifier. The
identification is needed since some tps6586x regulators use a different
voltage table.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tps6586x.c
include/linux/mfd/tps6586x.h