mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] usb: rename "struct usb_configuration" to "struct usb_config"
@ 2020-02-21 10:11 Christian Eggers
  2020-02-25  7:56 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Eggers @ 2020-02-21 10:11 UTC (permalink / raw)
  To: barebox; +Cc: Christian Eggers

struct usb_configuration in usb.h conflicts with struct
usb_configuration in usb/composite.h

The version in usb/composite.h is also defined in Linux, so rename the
other one.

Signed-off-by: Christian Eggers <ceggers@arri.de>
---
 include/usb/usb.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/usb/usb.h b/include/usb/usb.h
index d39de71aff..4847a3de36 100644
--- a/include/usb/usb.h
+++ b/include/usb/usb.h
@@ -68,7 +68,7 @@ struct usb_interface {
 	struct usb_endpoint_descriptor ep_desc[USB_MAXENDPOINTS];
 };
 
-struct usb_configuration {
+struct usb_config {
 	struct usb_config_descriptor desc;
 
 	unsigned char	no_of_if;	/* number of interfaces */
@@ -95,7 +95,7 @@ struct usb_device {
 
 	int configno;			/* selected config number */
 	struct usb_device_descriptor *descriptor; /* Device Descriptor */
-	struct usb_configuration config; /* config descriptor */
+	struct usb_config config; /* config descriptor */
 	struct devrequest *setup_packet;
 
 	int have_langid;		/* whether string_langid is valid yet */
-- 
Christian Eggers
Embedded software developer

Arnold & Richter Cine Technik GmbH & Co. Betriebs KG
Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRA 57918
Persoenlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH
Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRB 54477
Geschaeftsfuehrer: Dr. Michael Neuhaeuser; Stephan Schenk; Walter Trauninger; Markus Zeiler


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] usb: rename "struct usb_configuration" to "struct usb_config"
  2020-02-21 10:11 [PATCH] usb: rename "struct usb_configuration" to "struct usb_config" Christian Eggers
@ 2020-02-25  7:56 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2020-02-25  7:56 UTC (permalink / raw)
  To: Christian Eggers; +Cc: barebox

On Fri, Feb 21, 2020 at 11:11:11AM +0100, Christian Eggers wrote:
> struct usb_configuration in usb.h conflicts with struct
> usb_configuration in usb/composite.h
> 
> The version in usb/composite.h is also defined in Linux, so rename the
> other one.
> 
> Signed-off-by: Christian Eggers <ceggers@arri.de>
> ---
>  include/usb/usb.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-25  7:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-21 10:11 [PATCH] usb: rename "struct usb_configuration" to "struct usb_config" Christian Eggers
2020-02-25  7:56 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox