[U-Boot] [PATCH v7 2/3] common: usb_storage: Make common function for usb_stor_read/usb_stor_write

Simon Glass sjg at chromium.org
Fri Jun 17 05:53:00 CEST 2016


On 16 June 2016 at 04:35, Rajesh Bhagat <rajesh.bhagat at nxp.com> wrote:
> Performs code cleanup by making common function for usb_stor_read/
> usb_stor_write. Currently only difference in these fucntions is call
> to usb_read_10/usb_write_10 scsi commands.
>
> Signed-off-by: Rajesh Bhagat <rajesh.bhagat at nxp.com>
> ---
> Changes in v7:
>  - Moves unification of usb_read_10/usb_write_10 to other patch
>
> Changes in v6:
>  - Removes USB_STOR_OP_TYPE macro and adds __func__ in debug prints
>  - Unifies usb_read_10/usb_write_10 functions to usb_read_write_10
>
> Changes in v5:
>  - Converts USB_STOR_OPERATION_FUNC macro to a function
>  - Corrects the multi line comment accroding to coding style
>  - Renames variable to dev to remove code duplication
>
> Changes in v4:
>  - Adds code to make common function for read/write
>
>  common/usb_storage.c | 121 ++++++++++++++-------------------------------------
>  1 file changed, 32 insertions(+), 89 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list