OSDN Git Service

leds: qpnp-flash-v2: Add sysfs support to query max_current
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Wed, 17 Aug 2016 23:19:32 +0000 (16:19 -0700)
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Fri, 11 Nov 2016 19:57:56 +0000 (11:57 -0800)
commite03e61b954b87c39c7481b84b29cbd96357b90cb
treee73a20350b45b678ec215d879dea472535ab6a67
parent8e6988760075ac91403ba2c5096e848197d55704
leds: qpnp-flash-v2: Add sysfs support to query max_current

Add support to query max_current for each switch node through
sysfs. This will be useful to know the maximum current that
the flash switch device can draw at that time.

Change-Id: Ie83e71eafff5c49c81f56f92aa719662814997ed
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
drivers/leds/leds-qpnp-flash-v2.c