]> git.baikalelectronics.ru Git - kernel.git/commit
spmi: pmic-arb: return the value instead of passing by pointer
authorKiran Gunda <kgunda@codeaurora.org>
Fri, 28 Jul 2017 07:10:42 +0000 (12:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 11:51:19 +0000 (13:51 +0200)
commitf37803c962020e80fd266372883af338a3abba4b
treea5870e8953a670fe3556f7066ef8718108dcec8a
parent996910fcad9906abba46a9c31edbacbaf4e45d3b
spmi: pmic-arb: return the value instead of passing by pointer

Returning the output value from a function, when it is possible, is the
better and cleaner way than passing it by the pointer. Hence, modify
the ppid_to_apid mapping function to return apid instead of passing
it by a pointer. While at it, pass the ppid as function parameter to
ppid_to_apid mapping function instead of passing the sid and addr.

Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spmi/spmi-pmic-arb.c