mfd: tc3589x: Detect the precise version
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 18 Oct 2013 09:51:45 +0000 (11:51 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 23 Oct 2013 15:22:28 +0000 (16:22 +0100)
commite64c1eb47352d62f5bb06284bae72261d934faa8
treeff3e5d2744fe0d783bb33d98a7c904fa44b14b7b
parentb0e5992612a1079ddcc1810b786ab8ca438cddae
mfd: tc3589x: Detect the precise version

Instead of detecting the "tc3589x" and hard-coding the number of
GPIO pins to 24, encode all the possible subtypes and set the
number of GPIO pins from the type.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tc3589x.c