summaryrefslogtreecommitdiff
path: root/tools/lib/subcmd/sigchain.h
blob: 0c919f2874ca37b4b2d5414f7f5473b95cfd8d23 (plain)
1
2
3
4
5
6
7
8
9
10
#ifndef __SUBCMD_SIGCHAIN_H
#define __SUBCMD_SIGCHAIN_H

typedef void (*sigchain_fun)(int);

int sigchain_pop(int sig);

void sigchain_push_common(sigchain_fun f);

#endif /* __SUBCMD_SIGCHAIN_H */
.git/commit/include/dt-bindings?id=c60fa555b11b25386b355c141d90cbee361c3eec'>c60fa555b11b25386b355c141d90cbee361c3eec (patch) tree144f457fbc9ebfcb02a4c98a4009fd0f3b402d62 /include/dt-bindings parent2ae3986b84e9d325bc92a1efbcf0c6b0f5016b35 (diff)
HID: usbhid: fix improper return value
Function hid_post_reset() should return negative error codes on failures. However, in its implementation, it incorrectly returns 1. This patch fixes the bug, returning proper error codes on failures. Signed-off-by: Pan Bian <bianpan2016@163.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/dt-bindings')