Commit 45043a66 authored by Felipe Balbi's avatar Felipe Balbi Committed by Tony Lindgren

USB: MUSB: checkpatch.pl fixes to musb_core.h

Misc cleanup patch.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 464f0344
...@@ -218,7 +218,7 @@ enum musb_g_ep0_state { ...@@ -218,7 +218,7 @@ enum musb_g_ep0_state {
/* "flat" mapping: each endpoint has its own i/o address */ /* "flat" mapping: each endpoint has its own i/o address */
#elif defined(MUSB_FLAT_REG) #elif defined(MUSB_FLAT_REG)
#define musb_ep_select(_mbase, _epnum) (((void)(_mbase)),((void)(_epnum))) #define musb_ep_select(_mbase, _epnum) (((void)(_mbase)), ((void)(_epnum)))
#define MUSB_EP_OFFSET MUSB_FLAT_OFFSET #define MUSB_EP_OFFSET MUSB_FLAT_OFFSET
/* "indexed" mapping: INDEX register controls register bank select */ /* "indexed" mapping: INDEX register controls register bank select */
...@@ -402,7 +402,7 @@ struct musb { ...@@ -402,7 +402,7 @@ struct musb {
#define can_bulk_split(musb,type) \ #define can_bulk_split(musb,type) \
(((type) == USB_ENDPOINT_XFER_BULK) && (musb)->bulk_split) (((type) == USB_ENDPOINT_XFER_BULK) && (musb)->bulk_split)
#else #else
#define can_bulk_split(musb,type) 0 #define can_bulk_split(musb, type) 0
#endif #endif
#ifdef C_MP_RX #ifdef C_MP_RX
...@@ -410,7 +410,7 @@ struct musb { ...@@ -410,7 +410,7 @@ struct musb {
#define can_bulk_combine(musb,type) \ #define can_bulk_combine(musb,type) \
(((type) == USB_ENDPOINT_XFER_BULK) && (musb)->bulk_combine) (((type) == USB_ENDPOINT_XFER_BULK) && (musb)->bulk_combine)
#else #else
#define can_bulk_combine(musb,type) 0 #define can_bulk_combine(musb, type) 0
#endif #endif
#ifdef CONFIG_USB_GADGET_MUSB_HDRC #ifdef CONFIG_USB_GADGET_MUSB_HDRC
...@@ -464,8 +464,8 @@ extern const char musb_driver_name[]; ...@@ -464,8 +464,8 @@ extern const char musb_driver_name[];
extern void musb_start(struct musb *musb); extern void musb_start(struct musb *musb);
extern void musb_stop(struct musb *musb); extern void musb_stop(struct musb *musb);
extern void musb_write_fifo(struct musb_hw_ep *ep, u16 len, const u8 * src); extern void musb_write_fifo(struct musb_hw_ep *ep, u16 len, const u8 *src);
extern void musb_read_fifo(struct musb_hw_ep *ep, u16 len, u8 * dst); extern void musb_read_fifo(struct musb_hw_ep *ep, u16 len, u8 *dst);
extern void musb_load_testpacket(struct musb *); extern void musb_load_testpacket(struct musb *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment