projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
USB: coding style fixes (function naming)
[bertos.git]
/
bertos
/
drv
/
usb_serial.c
diff --git
a/bertos/drv/usb_serial.c
b/bertos/drv/usb_serial.c
index fd1ae517b07b481404e7c819db11ccbfda667b36..0a57a7b6da04c5dd76c26a36838dc757cbcac2ed 100644
(file)
--- a/
bertos/drv/usb_serial.c
+++ b/
bertos/drv/usb_serial.c
@@
-178,7
+178,7
@@
static int usb_serial_hw_init(void)
#if CONFIG_KERN
MOD_CHECK(proc);
#endif
#if CONFIG_KERN
MOD_CHECK(proc);
#endif
- if (usb_device
_r
egister(&usb_serial) < 0)
+ if (usb_device
R
egister(&usb_serial) < 0)
return -1;
LOG_INFO("usb-serial: registered new USB interface driver\n");
return 0;
return -1;
LOG_INFO("usb-serial: registered new USB interface driver\n");
return 0;
@@
-197,7
+197,7
@@
static size_t usb_serial_write(struct KFile *fd,
/* Silent compiler warnings if _DEBUG is not enabled */
(void)fd;
ASSERT(fds->is_open);
/* Silent compiler warnings if _DEBUG is not enabled */
(void)fd;
ASSERT(fds->is_open);
- return usb_e
p_w
rite(usb_serial_ep_in_descriptor.bEndpointAddress,
+ return usb_e
ndpointW
rite(usb_serial_ep_in_descriptor.bEndpointAddress,
buf, size);
}
buf, size);
}
@@
-213,7
+213,7
@@
static size_t usb_serial_read(struct KFile *fd, void *buf, size_t size)
/* Silent compiler warnings if _DEBUG is not enabled */
(void)fd;
ASSERT(fds->is_open);
/* Silent compiler warnings if _DEBUG is not enabled */
(void)fd;
ASSERT(fds->is_open);
- return usb_e
p_r
ead(usb_serial_ep_out_descriptor.bEndpointAddress,
+ return usb_e
ndpointR
ead(usb_serial_ep_out_descriptor.bEndpointAddress,
buf, size);
}
buf, size);
}
@@
-293,7
+293,7
@@
static struct KFile *usb_serial_reopen(struct KFile *fd)
*
* \return 0 if OK, a negative value in case of error.
*/
*
* \return 0 if OK, a negative value in case of error.
*/
-int usb_serial
_i
nit(struct USBSerial *fds, int unit)
+int usb_serial
I
nit(struct USBSerial *fds, int unit)
{
memset(fds, 0, sizeof(*fds));
{
memset(fds, 0, sizeof(*fds));