blob: c5276839ee65be7e9b03291c313338b5c53e85c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef __CCLOGIC_CLASS_H__
#define __CCLOGIC_CLASS_H__
struct cclogic_class_dev {
const char *name;
struct device *dev;
int index;
unsigned int support;
struct device_attribute device_supported_modes_attr;
struct device_attribute device_mode_attr;
struct device_attribute device_power_role_attr;
struct device_attribute device_data_role_attr;
};
extern int cclogic_class_register(struct cclogic_class_dev *dev);
extern void cclogic_class_unregister(struct cclogic_class_dev *dev);
extern void cclogic_class_update_state(struct cclogic_class_dev *cdev);
#endif
|