OSDN Git Service

leds: qpnp-flash-v2: Return error code separately during current prediction
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Wed, 29 Nov 2017 03:54:09 +0000 (19:54 -0800)
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Fri, 8 Dec 2017 23:43:09 +0000 (15:43 -0800)
commit560b4a9dfb379a83feda32f67551a7acdcdd572f
tree04a612165f4524c434dad8a4be0aa07487033b12
parentaaf4841e27b932dec6fae2703fae284627f335fb
leds: qpnp-flash-v2: Return error code separately during current prediction

Currently when the maximum available current per flash switch is
calculated, it is returned along with the error code. This will
be confusing when a real error occurs. Fix this by returning
error code separately and obtain the current by passing it by
reference.

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