From: Akihiro TSUKADA <tskd08@gmail.com>
To: Satoshi Nagahama <sattnag@aim.com>,
Mauro Carvalho Chehab <mchehab@osg.samsung.com>,
linux-media@vger.kernel.org
Subject: Re: [PATCH] [media] em28xx_dvb: add support for PLEX PX-BCUD (ISDB-S usb dongle)
Date: Sat, 30 Apr 2016 11:57:31 +0900 [thread overview]
Message-ID: <e1c557f3-c110-f330-3270-bd168f8508f1@gmail.com> (raw)
In-Reply-To: <a0564a33-161b-3e2e-d4d3-c6ed896a7b89@aim.com>
Hi, Satoshi,
just some small comments about tuners/qm1d1c0042...
> --- a/drivers/media/tuners/qm1d1c0042.c
> +++ b/drivers/media/tuners/qm1d1c0042.c
> @@ -32,14 +32,23 @@
> #include "qm1d1c0042.h"
>
> #define QM1D1C0042_NUM_REGS 0x20
> -
> -static const u8 reg_initval[QM1D1C0042_NUM_REGS] = {
> - 0x48, 0x1c, 0xa0, 0x10, 0xbc, 0xc5, 0x20, 0x33,
> - 0x06, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
> - 0x00, 0xff, 0xf3, 0x00, 0x2a, 0x64, 0xa6, 0x86,
> - 0x8c, 0xcf, 0xb8, 0xf1, 0xa8, 0xf2, 0x89, 0x00
> +#define QM1D1C0042_NUM_REG_ROWS 2
> +
> +static const u8
> reg_initval[QM1D1C0042_NUM_REG_ROWS][QM1D1C0042_NUM_REGS] = { {
> + 0x48, 0x1c, 0xa0, 0x10, 0xbc, 0xc5, 0x20, 0x33,
> + 0x06, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
> + 0x00, 0xff, 0xf3, 0x00, 0x2a, 0x64, 0xa6, 0x86,
> + 0x8c, 0xcf, 0xb8, 0xf1, 0xa8, 0xf2, 0x89, 0x00
> + }, {
> + 0x68, 0x1c, 0xc0, 0x10, 0xbc, 0xc1, 0x11, 0x33,
> + 0x03, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
> + 0x00, 0xff, 0xf3, 0x00, 0x3f, 0x25, 0x5c, 0xd6,
> + 0x55, 0xcf, 0x95, 0xf6, 0x36, 0xf2, 0x09, 0x00
> + }
> };
>
> +static int reg_index;
> +
* The names of _REG_ROWS / reg_index might be a bit vague to others.
I would prefer _CHIP_IDS / chip_id or something like that.
* reg_index should not be static as it is per device property.
Instead, it shouldj be defined in qm1d1c0042_init() locally, or
in struct qm1d1c0042_state, if "reg_index" can be used elsewhere.
Thre rest looks OK to me.
regards,
akihiro
next prev parent reply other threads:[~2016-04-30 2:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-29 14:27 [PATCH] [media] em28xx_dvb: add support for PLEX PX-BCUD (ISDB-S usb dongle) Satoshi Nagahama
2016-04-30 2:57 ` Akihiro TSUKADA [this message]
2016-05-02 14:10 ` Satoshi Nagahama
-- strict thread matches above, loose matches on Subject: below --
2016-03-08 14:19 Satoshi Nagahama
2016-04-11 14:06 ` Satoshi Nagahama
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=e1c557f3-c110-f330-3270-bd168f8508f1@gmail.com \
--to=tskd08@gmail.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@osg.samsung.com \
--cc=sattnag@aim.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;
as well as URLs for NNTP newsgroup(s).