projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ae90d8
)
usb: musb: replace ifndef with ifdef for CONFIG_MUSB_PIO_ONLY
author
Sebastian Andrzej Siewior
<bigeasy@linutronix.de>
Wed, 19 Jun 2013 15:38:09 +0000
(17:38 +0200)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 29 Jul 2013 10:53:16 +0000
(13:53 +0300)
The ifdef reads somehow better than an ifndef
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_dma.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/musb/musb_dma.h
b/drivers/usb/musb/musb_dma.h
index 1b6b827b769f5f9fb0398f54208d425bbaafc446..8919ce28c3d468d0bd3119854dc67f4ce07ad6a5 100644
(file)
--- a/
drivers/usb/musb/musb_dma.h
+++ b/
drivers/usb/musb/musb_dma.h
@@
-62,10
+62,10
@@
struct musb_hw_ep;
#define DMA_ADDR_INVALID (~(dma_addr_t)0)
-#ifndef CONFIG_MUSB_PIO_ONLY
-#define is_dma_capable() (1)
-#else
+#ifdef CONFIG_MUSB_PIO_ONLY
#define is_dma_capable() (0)
+#else
+#define is_dma_capable() (1)
#endif
#ifdef CONFIG_USB_TI_CPPI_DMA