From: Hans Verkuil <hverkuil@xs4all.nl>
To: Mauro Carvalho Chehab <mchehab@osg.samsung.com>,
no To-header on input <""@pop.xs4all.nl>
Cc: "Linux Media Mailing List" <linux-media@vger.kernel.org>,
"Mauro Carvalho Chehab" <mchehab@infradead.org>,
"Hans Verkuil" <hans.verkuil@cisco.com>,
"Junghak Sung" <jh1009.sung@samsung.com>,
"Seung-Woo Kim" <sw0312.kim@samsung.com>,
"Inki Dae" <inki.dae@samsung.com>,
"Shuah Khan" <shuahkh@osg.samsung.com>,
"Markus Elfring" <elfring@users.sourceforge.net>,
"Rafael Lourenço de Lima Chehab" <chehabrafael@gmail.com>,
"Lad, Prabhakar" <prabhakar.csengg@gmail.com>,
"Geunyoung Kim" <nenggun.kim@samsung.com>
Subject: Re: [PATCH 1/2] [media] au0828: get rid of AU0828_VMUX_DEBUG
Date: Fri, 12 Feb 2016 13:16:04 +0100 [thread overview]
Message-ID: <56BDCD04.2030002@xs4all.nl> (raw)
In-Reply-To: <b39a8de587466a0052e696d8ebc3987066784384.1455276050.git.mchehab@osg.samsung.com>
On 02/12/2016 12:21 PM, Mauro Carvalho Chehab wrote:
> This is not used on the driver. remove it.
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
> ---
> drivers/media/usb/au0828/au0828-video.c | 12 +++---------
> drivers/media/usb/au0828/au0828.h | 1 -
> 2 files changed, 3 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/media/usb/au0828/au0828-video.c b/drivers/media/usb/au0828/au0828-video.c
> index 4164302dd8ac..2fc2b29d2dd9 100644
> --- a/drivers/media/usb/au0828/au0828-video.c
> +++ b/drivers/media/usb/au0828/au0828-video.c
> @@ -698,10 +698,9 @@ static int au0828_create_media_graph(struct au0828_dev *dev)
> for (i = 0; i < AU0828_MAX_INPUT; i++) {
> struct media_entity *ent = &dev->input_ent[i];
>
> - if (AUVI_INPUT(i).type == AU0828_VMUX_UNDEFINED)
> - break;
> -
> switch (AUVI_INPUT(i).type) {
> + case AU0828_VMUX_UNDEFINED:
> + break;
> case AU0828_VMUX_CABLE:
> case AU0828_VMUX_TELEVISION:
> case AU0828_VMUX_DVB:
> @@ -716,7 +715,6 @@ static int au0828_create_media_graph(struct au0828_dev *dev)
> break;
> case AU0828_VMUX_COMPOSITE:
> case AU0828_VMUX_SVIDEO:
> - default: /* AU0828_VMUX_DEBUG */
> /* FIXME: fix the decoder PAD */
> ret = media_create_pad_link(ent, 0, decoder, 0, 0);
> if (ret)
> @@ -1460,7 +1458,6 @@ static int vidioc_enum_input(struct file *file, void *priv,
> [AU0828_VMUX_CABLE] = "Cable TV",
> [AU0828_VMUX_TELEVISION] = "Television",
> [AU0828_VMUX_DVB] = "DVB",
> - [AU0828_VMUX_DEBUG] = "tv debug"
> };
>
> dprintk(1, "%s called std_set %d dev_state %d\n", __func__,
> @@ -1952,7 +1949,6 @@ static void au0828_analog_create_entities(struct au0828_dev *dev)
> [AU0828_VMUX_CABLE] = "Cable TV",
> [AU0828_VMUX_TELEVISION] = "Television",
> [AU0828_VMUX_DVB] = "DVB",
> - [AU0828_VMUX_DEBUG] = "tv debug"
> };
> int ret, i;
>
> @@ -1988,11 +1984,9 @@ static void au0828_analog_create_entities(struct au0828_dev *dev)
> case AU0828_VMUX_CABLE:
> case AU0828_VMUX_TELEVISION:
> case AU0828_VMUX_DVB:
> + default: /* Just to shut up a warning */
> ent->function = MEDIA_ENT_F_CONN_RF;
> break;
> - default: /* AU0828_VMUX_DEBUG */
> - ent->function = MEDIA_ENT_F_CONN_TEST;
> - break;
> }
>
> ret = media_entity_pads_init(ent, 1, &dev->input_pad[i]);
> diff --git a/drivers/media/usb/au0828/au0828.h b/drivers/media/usb/au0828/au0828.h
> index 19fd6a841988..23f869cf11da 100644
> --- a/drivers/media/usb/au0828/au0828.h
> +++ b/drivers/media/usb/au0828/au0828.h
> @@ -76,7 +76,6 @@ enum au0828_itype {
> AU0828_VMUX_CABLE,
> AU0828_VMUX_TELEVISION,
> AU0828_VMUX_DVB,
> - AU0828_VMUX_DEBUG
> };
>
> struct au0828_input {
>
prev parent reply other threads:[~2016-02-12 12:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-12 11:21 [PATCH 1/2] [media] au0828: get rid of AU0828_VMUX_DEBUG Mauro Carvalho Chehab
2016-02-12 11:21 ` [PATCH 2/2] [media] cx231xx: get rid of CX231XX_VMUX_DEBUG Mauro Carvalho Chehab
2016-02-12 12:16 ` Hans Verkuil
2016-02-12 12:16 ` Hans Verkuil [this message]
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=56BDCD04.2030002@xs4all.nl \
--to=hverkuil@xs4all.nl \
--cc=chehabrafael@gmail.com \
--cc=elfring@users.sourceforge.net \
--cc=hans.verkuil@cisco.com \
--cc=inki.dae@samsung.com \
--cc=jh1009.sung@samsung.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=mchehab@osg.samsung.com \
--cc=nenggun.kim@samsung.com \
--cc=prabhakar.csengg@gmail.com \
--cc=shuahkh@osg.samsung.com \
--cc=sw0312.kim@samsung.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