OSDN Git Service

drivers/nfc/pn544.c: add missing regulator
authorMatti J. Aaltonen <matti.j.aaltonen@nokia.com>
Fri, 25 Feb 2011 22:44:19 +0000 (14:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Feb 2011 23:07:36 +0000 (15:07 -0800)
commitac3c8304190ed0daaa2fb01ce2a069be5e2a52a7
treebaebdd925a0f9d2b959b116e50d107c9dfee69e7
parentd73fa4b914eab332d9919132b273b6797b8aface
drivers/nfc/pn544.c: add missing regulator

The regulator framework is used for power management.  The regulators are
only named in the driver code, the actual control stuff is in the board
file for each architecture or use case.

The PN544 chip has three regulators that can be controlled or not -
depending on the architecture where the chip is being used.  So some of
the regulators may not be controllable.  In our current case the third
regulator, which was missing from the code, went unnoticed because we
didn't need to control it.  To be as general as possible - in this respect
- the driver needs to list all regulators.  Then the board file can be
used to actually set the usage.

Signed-off-by: Matti J. Aaltonen <matti.j.aaltonen@nokia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/nfc/pn544.c