summaryrefslogtreecommitdiff
path: root/lib/sg_split.c
diff options
context:
space:
mode:
authorKiran Gunda <kgunda@codeaurora.org>2017-07-28 12:40:42 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 13:51:19 +0200
commitff615ed91b5dffa0f1977ee1d703f697e2b4d62f (patch)
treea5870e8953a670fe3556f7066ef8718108dcec8a /lib/sg_split.c
parent9f7a9a448da7cf7951fb9e33eadd4dea173000fe (diff)
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>
Diffstat (limited to 'lib/sg_split.c')
0 files changed, 0 insertions, 0 deletions