summaryrefslogtreecommitdiff
path: root/src/include/console/usb.h
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-07 17:45:12 -0800
committerLee Leahy <leroy.p.leahy@intel.com>2017-03-13 17:23:37 +0100
commit6a566d7fbee8e81fa22916a29339e5991872edfb (patch)
tree21840b8f2965439422e809ab56f9ef19cdccf4bd /src/include/console/usb.h
parentd0f26fcea2fdab02d9b9fc1fceb9e782694a55bc (diff)
src/include: Wrap lines at 80 columns
Fix the following warning detected by checkpatch.pl: WARNING: line over 80 characters Changed a few comments to reduce line length. File src/include/cpu/amd/vr.h was skipped. TEST=Build and run on Galileo Gen2 Change-Id: Ie3c07111acc1f89923fb31135684a6d28a505b61 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18687 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/include/console/usb.h')
-rw-r--r--src/include/console/usb.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/include/console/usb.h b/src/include/console/usb.h
index d52ea87536..1b153ef8e6 100644
--- a/src/include/console/usb.h
+++ b/src/include/console/usb.h
@@ -35,7 +35,10 @@ int usb_can_rx_byte(int idx);
#if __CONSOLE_USB_ENABLE__
static inline void __usbdebug_init(void) { usbdebug_init(); }
-static inline void __usb_tx_byte(u8 data) { usb_tx_byte(USB_PIPE_FOR_CONSOLE, data); }
+static inline void __usb_tx_byte(u8 data)
+{
+ usb_tx_byte(USB_PIPE_FOR_CONSOLE, data);
+}
static inline void __usb_tx_flush(void) { usb_tx_flush(USB_PIPE_FOR_CONSOLE); }
#else
static inline void __usbdebug_init(void) {}
@@ -47,9 +50,15 @@ static inline void __usb_tx_flush(void) {}
#if 0 && CONFIG_GDB_STUB && \
((ENV_ROMSTAGE && CONFIG_USBDEBUG_IN_ROMSTAGE) || ENV_RAMSTAGE)
static inline void __gdb_hw_init(void) { usbdebug_init(); }
-static inline void __gdb_tx_byte(u8 data) { usb_tx_byte(USB_PIPE_FOR_GDB, data); }
+static inline void __gdb_tx_byte(u8 data)
+{
+ usb_tx_byte(USB_PIPE_FOR_GDB, data);
+}
static inline void __gdb_tx_flush(void) { usb_tx_flush(USB_PIPE_FOR_GDB); }
-static inline u8 __gdb_rx_byte(void) { return usb_rx_byte(USB_PIPE_FOR_GDB); }
+static inline u8 __gdb_rx_byte(void)
+{
+ return usb_rx_byte(USB_PIPE_FOR_GDB);
+}
#endif
#endif /* _CONSOLE_USB_H_ */