coresight: add API to get sink from path
authorMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 18 Feb 2016 00:51:46 +0000 (17:51 -0700)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 1 Jun 2016 21:30:12 +0000 (15:30 -0600)
commitf72b3bc46dab124c25d84575d3addab8ef7c68cd
treec77fef0c766c434f8272a536c3d1a24646f4de06
parentfde79d4de7443a7e3cca1dd05d4a789ebc490a53
coresight: add API to get sink from path

Add an API allowing external code to quickly get a handle on the
sink within a path.  The sink is always last, but adding an API allows
to keep the path's node structure private and remove redundant checks.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit b6404e21f023e4aa208a0ba03d55a9c8a57cb940)
drivers/hwtracing/coresight/coresight-priv.h
drivers/hwtracing/coresight/coresight.c