mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 17:18: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
33
include/linux/bsg.h
Normal file
33
include/linux/bsg.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
#ifndef BSG_H
|
||||
#define BSG_H
|
||||
|
||||
#include <uapi/linux/bsg.h>
|
||||
|
||||
|
||||
#if defined(CONFIG_BLK_DEV_BSG)
|
||||
struct bsg_class_device {
|
||||
struct device *class_dev;
|
||||
struct device *parent;
|
||||
int minor;
|
||||
struct request_queue *queue;
|
||||
struct kref ref;
|
||||
void (*release)(struct device *);
|
||||
};
|
||||
|
||||
extern int bsg_register_queue(struct request_queue *q,
|
||||
struct device *parent, const char *name,
|
||||
void (*release)(struct device *));
|
||||
extern void bsg_unregister_queue(struct request_queue *);
|
||||
#else
|
||||
static inline int bsg_register_queue(struct request_queue *q,
|
||||
struct device *parent, const char *name,
|
||||
void (*release)(struct device *))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline void bsg_unregister_queue(struct request_queue *q)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue