#ifndef PERF_UTIL_PERF_HOOKS_H #define PERF_UTIL_PERF_HOOKS_H #ifdef __cplusplus extern "C" { #endif typedef void (*perf_hook_func_t)(void *ctx); struct perf_hook_desc { const char * const hook_name; perf_hook_func_t * const p_hook_func; void *hook_ctx; }; extern void perf_hooks__invoke(const struct perf_hook_desc *); extern void perf_hooks__recover(void); #define PERF_HOOK(name) \ extern struct perf_hook_desc __perf_hook_desc_##name; \ static inline void perf_hooks__invoke_##name(void) \ { \ perf_hooks__invoke(&__perf_hook_desc_##name); \ } #include "perf-hooks-list.h" #undef PERF_HOOK extern int perf_hooks__set_hook(const char *hook_name, perf_hook_func_t hook_func, void *hook_ctx); extern perf_hook_func_t perf_hooks__get_hook(const char *hook_name); #ifdef __cplusplus } #endif #endif name='id' value='6e2de20ddc4b606a9b6b170a6bb21ee4dc4ad93a'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/include/rdma
h=nds-private-remove&id=a0e4761d9bd546eba2e9d3a675863a843624e613&showmsg=1'>Expand) ect>
AgeCommit message (Expand)AuthorFilesLines
2017-02-06net-next: treewide use is_vlan_dev() helper function.Parav Pandit1-4/+2
AuthorFilesLines
authorRoderick Colenbrander <roderick.colenbrander@sony.com>2016-12-08 19:09:52 -0800
committerJiri Kosina <jkosina@suse.cz>2016-12-19 15:07:37 +0100
commit405182c2459fe2de4a3994ef39e866993e0e61d1 (patch)
tree9a5869dd32a4feef8e5d8ca2451ba3454a6f127f
parentc70d5f70ccbbdf56bb86adb42127db90d0c90976 (diff)
HID: sony: Ignore DS4 dongle reports when no device is connected
When the DS4 dongle is connected, it always generates HID reports even when no DS4 is paired to it. This patch adds logic to ignore HID reports from the dongle if there is no DS4 currently attached. Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat