History

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.

Mathieu Poirier committed 7 years ago

Commit 6c817a91 parent a54e14f6 files · +16 −8Browse files

Showing the changes to include/linux (1 of 6 files). Show all

Unified · Split

include/linux/coresight.h+1−1
@@ -192,7 +192,7 @@ struct coresight_device { · 191 unmodified lines
192192 */
193193 struct coresight_ops_sink {
194194 int (*enable)(struct coresight_device *csdev, u32 mode, void *data);
195− void (*disable)(struct coresight_device *csdev);
195+ int (*disable)(struct coresight_device *csdev);
196196 void *(*alloc_buffer)(struct coresight_device *csdev, int cpu,
197197 void **pages, int nr_pages, bool overwrite);
198198 void (*free_buffer)(void *config);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t