mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
coresight: Adding return code to sink::disable() operation
In preparation to handle device reference counting inside of the sink drivers, add a return code to the sink::disable() operation so that proper action can be taken if a sink has not been disabled. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com> Tested-by: Leo Yan <leo.yan@linaro.org> Tested-by: Robert Walker <robert.walker@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a54e14f810
commit
6c817a95d8
6 changed files with 16 additions and 8 deletions
|
@ -192,7 +192,7 @@ struct coresight_device {
|
|||
*/
|
||||
struct coresight_ops_sink {
|
||||
int (*enable)(struct coresight_device *csdev, u32 mode, void *data);
|
||||
void (*disable)(struct coresight_device *csdev);
|
||||
int (*disable)(struct coresight_device *csdev);
|
||||
void *(*alloc_buffer)(struct coresight_device *csdev, int cpu,
|
||||
void **pages, int nr_pages, bool overwrite);
|
||||
void (*free_buffer)(void *config);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue