public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Bagas Sanjaya <bagasdotme@gmail.com>
To: Dan Vacura <w36195@motorola.com>, linux-usb@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jonathan Corbet <corbet@lwn.net>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Felipe Balbi <balbi@kernel.org>,
	Mauro Carvalho Chehab <mchehab+huawei@kernel.org>,
	Carlos Bilbao <bilbao@vt.edu>,
	Randy Dunlap <rdunlap@infradead.org>,
	linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org
Subject: Re: [PATCH v2] usb: gadget: uvc: allow changing interface name via configfs
Date: Sun, 3 Apr 2022 13:13:02 +0700	[thread overview]
Message-ID: <f4377408-ace7-a041-084f-5863bcfb7184@gmail.com> (raw)
In-Reply-To: <20220401160447.5919-1-w36195@motorola.com>

On 01/04/22 23.04, Dan Vacura wrote:
> Add a configfs entry, "function_name", to change the iInterface field
> for VideoControl. This name is used on host devices for user selection,
> useful when multiple cameras are present. The default will remain "UVC
> Camera".
> 
> Signed-off-by: Dan Vacura <w36195@motorola.com>
> ---
> Changes in v2:
> - remove stable cc
> 
>   .../ABI/testing/configfs-usb-gadget-uvc       |  1 +
>   Documentation/usb/gadget-testing.rst          |  1 +
>   drivers/usb/gadget/function/f_uvc.c           |  4 +-
>   drivers/usb/gadget/function/u_uvc.h           |  1 +
>   drivers/usb/gadget/function/uvc_configfs.c    | 41 +++++++++++++++++++
>   5 files changed, 47 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/ABI/testing/configfs-usb-gadget-uvc b/Documentation/ABI/testing/configfs-usb-gadget-uvc
> index 889ed45be4ca..611b23e6488d 100644
> --- a/Documentation/ABI/testing/configfs-usb-gadget-uvc
> +++ b/Documentation/ABI/testing/configfs-usb-gadget-uvc
> @@ -7,6 +7,7 @@ Description:	UVC function directory
>   		streaming_maxburst	0..15 (ss only)
>   		streaming_maxpacket	1..1023 (fs), 1..3072 (hs/ss)
>   		streaming_interval	1..16
> +		function_name		string [32]
>   		===================	=============================

Since you mention that default function_name is "UVC Camera", why don't you
mention it in the documentation?

-- 
An old man doll... just what I always wanted! - Clara

  parent reply	other threads:[~2022-04-03  6:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-01 16:04 [PATCH v2] usb: gadget: uvc: allow changing interface name via configfs Dan Vacura
2022-04-02 11:24 ` John Keeping
2022-04-04 21:52   ` Dan Vacura
2022-04-03  6:13 ` Bagas Sanjaya [this message]
2022-04-04 20:17   ` Dan Vacura

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f4377408-ace7-a041-084f-5863bcfb7184@gmail.com \
    --to=bagasdotme@gmail.com \
    --cc=balbi@kernel.org \
    --cc=bilbao@vt.edu \
    --cc=corbet@lwn.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mchehab+huawei@kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=w36195@motorola.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox