summaryrefslogtreecommitdiff
path: root/drivers/misc/cclogic/cclogic-class.h
blob: f9b664c4b339ef87b05391c907abe577df4aae5c (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