mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
staging: emxx_udc: Fix CamelCase variable name
Changes from CamelCase to a kernel format Signed-off-by: Afonso Bordado <afonsobordado@az8.co> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7e026bfabb
commit
af1550cce0
@ -553,19 +553,19 @@ static void _nbu2ss_dma_unmap_single(
|
|||||||
|
|
||||||
/*-------------------------------------------------------------------------*/
|
/*-------------------------------------------------------------------------*/
|
||||||
/* Endpoint 0 OUT Transfer (PIO) */
|
/* Endpoint 0 OUT Transfer (PIO) */
|
||||||
static int ep0_out_pio(struct nbu2ss_udc *udc, u8 *pBuf, u32 length)
|
static int ep0_out_pio(struct nbu2ss_udc *udc, u8 *buf, u32 length)
|
||||||
{
|
{
|
||||||
u32 i;
|
u32 i;
|
||||||
u32 numreads = length / sizeof(u32);
|
u32 numreads = length / sizeof(u32);
|
||||||
union usb_reg_access *pBuf32 = (union usb_reg_access *)pBuf;
|
union usb_reg_access *buf32 = (union usb_reg_access *)buf;
|
||||||
|
|
||||||
if (!numreads)
|
if (!numreads)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* PIO Read */
|
/* PIO Read */
|
||||||
for (i = 0; i < numreads; i++) {
|
for (i = 0; i < numreads; i++) {
|
||||||
pBuf32->dw = _nbu2ss_readl(&udc->p_regs->EP0_READ);
|
buf32->dw = _nbu2ss_readl(&udc->p_regs->EP0_READ);
|
||||||
pBuf32++;
|
buf32++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return numreads * sizeof(u32);
|
return numreads * sizeof(u32);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user