]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - drivers/spmi/spmi-pmic-arb.c
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)
commitff615ed91b5dffa0f1977ee1d703f697e2b4d62f
treea5870e8953a670fe3556f7066ef8718108dcec8a
parent9f7a9a448da7cf7951fb9e33eadd4dea173000fe
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