Re: [PATCH 2/6] USB: gadget/u_serial.c: Add a couple of const declarations.

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

 



On Thursday 27 August 2009, George Spelvin wrote:
> Minor janitorial work to document that the functions don't change
> their arguments.

I'd have been happy to see this and #1 in a single
janitorial patch.  :)

Acked-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx>


> ---
>  drivers/usb/gadget/u_serial.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/gadget/u_serial.c b/drivers/usb/gadget/u_serial.c
> index 85450d3..c44c122 100644
> --- a/drivers/usb/gadget/u_serial.c
> +++ b/drivers/usb/gadget/u_serial.c
> @@ -185,7 +185,7 @@ static void gs_buf_clear(struct gs_buf *gb)
>   * Return the number of bytes of data written into the circular
>   * buffer.
>   */
> -static unsigned gs_buf_data_avail(struct gs_buf *gb)
> +static unsigned gs_buf_data_avail(struct gs_buf const *gb)
>  {
>  	return (WRITE_BUF_SIZE + gb->buf_put - gb->buf_get) % WRITE_BUF_SIZE;
>  }
> @@ -196,7 +196,7 @@ static unsigned gs_buf_data_avail(struct gs_buf *gb)
>   * Return the number of bytes of space available in the circular
>   * buffer.
>   */
> -static unsigned gs_buf_space_avail(struct gs_buf *gb)
> +static unsigned gs_buf_space_avail(struct gs_buf const *gb)
>  {
>  	return (WRITE_BUF_SIZE + gb->buf_get - gb->buf_put - 1) % WRITE_BUF_SIZE;
>  }
> -- 
> 1.6.3.3
> 
> 



--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

  Powered by Linux