Re: [PATCH v2] usb: dwc3: gadget: increase readability of dwc3_gadget_init_endpoints()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Felipe Balbi <balbi@xxxxxxxxxx> writes:
>> The commit 47d3946ea220
>>
>> 	usb: dwc3: refactor gadget endpoint count calculation
>>
>> refactored dwc3_gadget_init_endpoints() and in particular changed in or
>> out endpoint numbering to be through. It's not always convenient and
>> makes code a slightly harder to read.
>>
>> Introduce a new temporary variable to make it easier to understand what
>> is going on inside the function.
>>
>> While doing that, rename local variables as follows:
>> 	u8 num	-> u8 total
>> 	int num -> int kbytes
>
> this one is actually in bytes. I'll fix wen applying.

nevermind, I forgot that I converted to kbytes ;-)

sorry

-- 
balbi

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux