From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Antti Palosaari <crope@iki.fi>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH RFC 06/11] az6007: make remote controller optional
Date: Mon, 10 Dec 2012 15:22:40 -0200 [thread overview]
Message-ID: <50C61A60.8090603@redhat.com> (raw)
In-Reply-To: <1355100335-2123-6-git-send-email-crope@iki.fi>
Em 09-12-2012 22:45, Antti Palosaari escreveu:
> Do not compile remote controller when RC-core is disabled by Kconfig.
>
> Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
> Signed-off-by: Antti Palosaari <crope@iki.fi>
Seems OK for me.
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
> ---
> drivers/media/usb/dvb-usb-v2/az6007.c | 26 +++++++++++++++-----------
> 1 file changed, 15 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/media/usb/dvb-usb-v2/az6007.c b/drivers/media/usb/dvb-usb-v2/az6007.c
> index d75dbf2..3b33f1e 100644
> --- a/drivers/media/usb/dvb-usb-v2/az6007.c
> +++ b/drivers/media/usb/dvb-usb-v2/az6007.c
> @@ -189,6 +189,7 @@ static int az6007_streaming_ctrl(struct dvb_frontend *fe, int onoff)
> return az6007_write(d, 0xbc, onoff, 0, NULL, 0);
> }
>
> +#if defined(CONFIG_RC_CORE) || defined(CONFIG_RC_CORE_MODULE)
> /* remote control stuff (does not work with my box) */
> static int az6007_rc_query(struct dvb_usb_device *d)
> {
> @@ -215,6 +216,20 @@ static int az6007_rc_query(struct dvb_usb_device *d)
> return 0;
> }
>
> +static int az6007_get_rc_config(struct dvb_usb_device *d, struct dvb_usb_rc *rc)
> +{
> + pr_debug("Getting az6007 Remote Control properties\n");
> +
> + rc->allowed_protos = RC_BIT_NEC;
> + rc->query = az6007_rc_query;
> + rc->interval = 400;
> +
> + return 0;
> +}
> +#else
> + #define az6007_get_rc_config NULL
> +#endif
> +
> static int az6007_ci_read_attribute_mem(struct dvb_ca_en50221 *ca,
> int slot,
> int address)
> @@ -822,17 +837,6 @@ static void az6007_usb_disconnect(struct usb_interface *intf)
> dvb_usbv2_disconnect(intf);
> }
>
> -static int az6007_get_rc_config(struct dvb_usb_device *d, struct dvb_usb_rc *rc)
> -{
> - pr_debug("Getting az6007 Remote Control properties\n");
> -
> - rc->allowed_protos = RC_BIT_NEC;
> - rc->query = az6007_rc_query;
> - rc->interval = 400;
> -
> - return 0;
> -}
> -
> static int az6007_download_firmware(struct dvb_usb_device *d,
> const struct firmware *fw)
> {
>
next prev parent reply other threads:[~2012-12-10 17:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-10 0:45 [PATCH RFC 01/11] dvb_usb_v2: make remote controller optional Antti Palosaari
2012-12-10 0:45 ` [PATCH RFC 02/11] rtl28xxu: " Antti Palosaari
2012-12-10 0:45 ` [PATCH RFC 03/11] anysee: " Antti Palosaari
2012-12-10 0:45 ` [PATCH RFC 04/11] af9015: " Antti Palosaari
2012-12-10 0:45 ` [PATCH RFC 05/11] af9035: " Antti Palosaari
2012-12-10 0:45 ` [PATCH RFC 06/11] az6007: " Antti Palosaari
2012-12-10 17:22 ` Mauro Carvalho Chehab [this message]
2012-12-10 0:45 ` [PATCH RFC 07/11] it913x: " Antti Palosaari
2013-01-01 21:16 ` Antti Palosaari
2013-01-02 3:24 ` Fabio Estevam
2013-01-02 10:44 ` Antti Palosaari
2012-12-10 0:45 ` [PATCH RFC 08/11] it913x: remove unused define and increase module version Antti Palosaari
2012-12-10 19:02 ` Malcolm Priestley
2012-12-10 0:45 ` [PATCH RFC 09/11] dvb_usb_v2: remove rc-core stub implementations Antti Palosaari
2012-12-10 0:45 ` [PATCH RFC 10/11] dvb_usb_v2: use dummy function defines instead stub functions Antti Palosaari
2012-12-10 0:45 ` [PATCH RFC 11/11] dvb_usb_v2: change rc polling active/deactive logic Antti Palosaari
2013-01-06 12:11 ` [PATCH RFC 01/11] dvb_usb_v2: make remote controller optional Mauro Carvalho Chehab
2013-01-06 12:16 ` Mauro Carvalho Chehab
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=50C61A60.8090603@redhat.com \
--to=mchehab@redhat.com \
--cc=crope@iki.fi \
--cc=linux-media@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).