On Fri, 06 Dec 2013, Stefan Agner wrote:
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>
---
Changes since v4:
- Use variable named version instead of ret
Changes since v2:
- Avoid moving devm_kzalloc
---
drivers/mfd/tps6586x.c | 50 +++++++++++++++++++++++++++++++++++++-------
include/linux/mfd/tps6586x.h | 7 +++++++
2 files changed, 49 insertions(+), 8 deletions(-)
Applied with Acks.
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog