From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 1 Jul 2013 12:56:55 +0200 Subject: [U-Boot] [RFC] [UBOOT] [PATCH v2 2/4] USB: Adapt the usb-compat.h to uboot and fix compiler errors In-Reply-To: <1372092235-15163-3-git-send-email-dmurphy@ti.com> References: <1372092235-15163-1-git-send-email-dmurphy@ti.com> <1372092235-15163-3-git-send-email-dmurphy@ti.com> Message-ID: <201307011256.55976.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Dan Murphy, > Adapt the usb-compat.h to uBoot. > > Use #ifndef __UBOOT__ for code that is not applicable to uBoot. > Use #ifdef __UBOOT__ to add code that is uBoot specific. > > Create linux-compat.h - Linux kernel compatibility definitions that do not > exist in the uBoot. Moved the compatibility definitions from > lin_gadget_compat.h to this file as well. > > Create usb-mod-devicetable.h - Is a partial back port of mod_devicetable.h > in the linux kernel only taking the portion needed for USB > > Already existing header files were modified to pick up the new header > files. > > Currently musb will not compile. > > Signed-off-by: Dan Murphy > --- > drivers/usb/musb-new/musb_host.h | 1 + > drivers/usb/musb-new/usb-compat.h | 30 ---- > include/linux/usb/gadget.h | 184 +++++++++++++++++++----- > include/linux/usb/linux-compat.h | 234 > +++++++++++++++++++++++++++++++ include/linux/usb/usb-compat.h | > 186 +++++++++++++++++++++--- include/linux/usb/usb-mod-devicetable.h | > 131 +++++++++++++++++ > include/usb.h | 119 +--------------- > include/usb/lin_gadget_compat.h | 29 +--- > 8 files changed, 685 insertions(+), 229 deletions(-) > create mode 100644 include/linux/usb/linux-compat.h > create mode 100644 include/linux/usb/usb-mod-devicetable.h Did you actually compile-test this so it doesn't break any USB gadgets? Best regards, Marek Vasut