mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] fixup! usb: add basic TUSB320 Type-C controller support
Date: Tue, 20 Jun 2023 19:15:44 +0200	[thread overview]
Message-ID: <20230620171544.3083433-1-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20230615150116.287480-1-a.fatoum@pengutronix.de>

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@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




      reply	other threads:[~2023-06-20 17:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-15 15:01 [PATCH] " Ahmad Fatoum
2023-06-20 17:15 ` Ahmad Fatoum [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230620171544.3083433-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox