mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 09:08:05 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
24
lib/notifier-error-inject.h
Normal file
24
lib/notifier-error-inject.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#include <linux/atomic.h>
|
||||
#include <linux/debugfs.h>
|
||||
#include <linux/notifier.h>
|
||||
|
||||
struct notifier_err_inject_action {
|
||||
unsigned long val;
|
||||
int error;
|
||||
const char *name;
|
||||
};
|
||||
|
||||
#define NOTIFIER_ERR_INJECT_ACTION(action) \
|
||||
.name = #action, .val = (action),
|
||||
|
||||
struct notifier_err_inject {
|
||||
struct notifier_block nb;
|
||||
struct notifier_err_inject_action actions[];
|
||||
/* The last slot must be terminated with zero sentinel */
|
||||
};
|
||||
|
||||
extern struct dentry *notifier_err_inject_dir;
|
||||
|
||||
extern struct dentry *notifier_err_inject_init(const char *name,
|
||||
struct dentry *parent, struct notifier_err_inject *err_inject,
|
||||
int priority);
|
Loading…
Add table
Add a link
Reference in a new issue