[PATCH] fixup! usb: add basic TUSB320 Type-C controller support

Ahmad Fatoum a.fatoum at pengutronix.de
Tue Jun 20 10:15:44 PDT 2023


usb: typec: tusb320: add missing includes

<linux/usb/role.h> was only in my working copy and <linux/bitops.h>
(for BIT) was only included transitively.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 drivers/usb/typec/tusb320.c |  1 +
 include/linux/usb/role.h    | 12 ++++++++++++
 2 files changed, 13 insertions(+)
 create mode 100644 include/linux/usb/role.h

diff --git a/drivers/usb/typec/tusb320.c b/drivers/usb/typec/tusb320.c
index 0f84021b641b..eb6b492481a3 100644
--- a/drivers/usb/typec/tusb320.c
+++ b/drivers/usb/typec/tusb320.c
@@ -12,6 +12,7 @@
 #include <init.h>
 #include <linux/kernel.h>
 #include <linux/printk.h>
+#include <linux/bitops.h>
 #include <module.h>
 #include <regmap.h>
 #include <linux/usb/typec.h>
diff --git a/include/linux/usb/role.h b/include/linux/usb/role.h
new file mode 100644
index 000000000000..bf78db7e6fa8
--- /dev/null
+++ b/include/linux/usb/role.h
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#ifndef __LINUX_USB_ROLE_H
+#define __LINUX_USB_ROLE_H
+
+enum usb_role {
+	USB_ROLE_NONE,
+	USB_ROLE_HOST,
+	USB_ROLE_DEVICE,
+};
+
+#endif /* __LINUX_USB_ROLE_H */
-- 
2.39.2




More information about the barebox mailing list