diff options
author | Faiz Authar <faizauthar@gmail.com> | 2017-04-27 18:14:55 +0700 |
---|---|---|
committer | Davide Garberi <dade.garberi@gmail.com> | 2022-07-27 18:59:05 +0200 |
commit | 5dafae2558993f60611f1f6bd69c11c6cf88225e (patch) | |
tree | c79bd304ad24e69de43616cd898d1b46ff372975 /drivers/misc/cclogic/cclogic-class.h | |
parent | a84facefcb7d4dbdfe1a4ad9655146540b62ed8f (diff) |
drivers: add cclogic usb type-c driver
Change-Id: I783aaf058c42e85712f861369cc85db2d6adab61
Signed-off-by: Faiz Authar <faizauthar@gmail.com>
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Diffstat (limited to 'drivers/misc/cclogic/cclogic-class.h')
-rw-r--r-- | drivers/misc/cclogic/cclogic-class.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/misc/cclogic/cclogic-class.h b/drivers/misc/cclogic/cclogic-class.h new file mode 100644 index 000000000000..f9b664c4b339 --- /dev/null +++ b/drivers/misc/cclogic/cclogic-class.h @@ -0,0 +1,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 |