From: Antti Palosaari <crope@iki.fi>
To: Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH REVIEW 03/18] Montage M88DS3103 DVB-S/S2 demodulator driver
Date: Wed, 18 Dec 2013 16:40:13 +0200 [thread overview]
Message-ID: <52B1B3CD.8010103@iki.fi> (raw)
In-Reply-To: <20131218103535.2a7a2f32@samsung.com>
On 18.12.2013 14:35, Mauro Carvalho Chehab wrote:
> Hi Antti,
>
> Em Mon, 9 Dec 2013 00:31:20 +0200
> Antti Palosaari <crope@iki.fi> escreveu:
>
>> DVB-S/S2 satellite television demodulator driver.
>> + * You should have received a copy of the GNU General Public License along
>> + * with this program; if not, write to the Free Software Foundation, Inc.,
>> + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
>> + */
>
> New versions of checkpatch complain about the above:
>
> ERROR: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
> #73: FILE: drivers/media/dvb-frontends/m88ds3103.c:16:
> + * You should have received a copy of the GNU General Public License along$
>
> What they're likely want to prevent is to have future big mass patches just
> to fix the GNU address.
>
> This is not needed, anyway, as kernel has the /COPYING file with has the
> GPLv2 license.
>
> So, could you please remove this and resend the pull request?
Hey, that is written almost year ago and those new checkpatch
requirements are very new, I think from latest release candidate version.
However, I could send new patch top of that set which meets latest
3.13-rc4 checkpatch requirements.
>> +static int m88ds3103_wr_regs(struct m88ds3103_priv *priv,
>> + u8 buf[1 + len];
>
> Please, don't use dynamic buffer.
Same here. Fixed already by later patched.
>> +static int m88ds3103_rd_regs(struct m88ds3103_priv *priv,
> Same here.
Same here. Fixed already by later patched.
>> diff --git a/drivers/media/dvb-frontends/m88ds3103_priv.h b/drivers/media/dvb-frontends/m88ds3103_priv.h
>> +static const struct m88ds3103_reg_val m88ds3103_dvbs_init_reg_vals[] = {
>
> Why to put this inside a header file? Is it shared with some other c file?
It is private header file, not the shared one which is named as
m88ds3103.h. Having inittabs inside private header file is common
practice among DVB frontend driver. I think almost all demod driver has
done it similarly. I suspect the main reason is just to separate static
stuff out from code to keep driver file itself shorter.
I think it is good practice. It is place for another discussion whether
it is good practice or not.
regards
Antti
--
http://palosaari.fi/
next prev parent reply other threads:[~2013-12-18 14:40 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-08 22:31 [PATCH REVIEW 00/18] M88DS3103 / M88TS2022 / PCTV 461e Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 01/18] em28xx: add support for Empia EM28178 Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 02/18] a8293: add small sleep in order to settle LNB voltage Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 03/18] Montage M88DS3103 DVB-S/S2 demodulator driver Antti Palosaari
2013-12-09 5:58 ` Matthias Schwarzott
2013-12-18 12:35 ` Mauro Carvalho Chehab
2013-12-18 14:40 ` Antti Palosaari [this message]
2013-12-08 22:31 ` [PATCH REVIEW 04/18] Montage M88TS2022 silicon tuner driver Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 05/18] em28xx: add support for PCTV DVB-S2 Stick (461e) [2013:0258] Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 06/18] MAINTAINERS: add M88DS3103 Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 07/18] MAINTAINERS: add M88TS2022 Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 08/18] m88ts2022: do not use dynamic stack allocation Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 09/18] m88ds3103: " Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 10/18] m88ds3103: use I2C mux for tuner I2C adapter Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 11/18] m88ds3103: use kernel macro to round division Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 12/18] m88ds3103: fix TS mode config Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 13/18] m88ts2022: reimplement synthesizer calculations Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 14/18] m88ds3103: remove unneeded AGC from inittab Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 15/18] m88ds3103: add default value for reg 56 Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 16/18] m88ds3103: I/O optimize inittab write Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 17/18] m88ts2022: convert to Kernel I2C driver model Antti Palosaari
2013-12-08 22:31 ` [PATCH REVIEW 18/18] m88ds3103: fix possible i2c deadlock Antti Palosaari
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=52B1B3CD.8010103@iki.fi \
--to=crope@iki.fi \
--cc=linux-media@vger.kernel.org \
--cc=m.chehab@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