devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Michael Tretter <m.tretter@pengutronix.de>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	linux-media@vger.kernel.org, devicetree@vger.kernel.org,
	Rob Herring <robh+dt@kernel.org>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	p.zabel@pengutronix.de, Ian Arkver <ian.arkver.dev@gmail.com>,
	kernel@pengutronix.de, Hans Verkuil <hverkuil@xs4all.nl>
Subject: Re: [PATCH v9 3/3] media: i2c: isl7998x: Add driver for Intersil ISL7998x
Date: Thu, 16 Dec 2021 12:57:22 +0100	[thread overview]
Message-ID: <44ca558e-8481-89e6-a190-42cef8dddefb@denx.de> (raw)
In-Reply-To: <20211216114105.GD29518@pengutronix.de>

On 12/16/21 12:41, Michael Tretter wrote:
> On Tue, 14 Dec 2021 11:14:58 +0100, Mauro Carvalho Chehab wrote:
>> Em Mon, 29 Nov 2021 12:27:08 +0100
>> Michael Tretter <m.tretter@pengutronix.de> escreveu:
>>
>>> From: Marek Vasut <marex@denx.de>
>>>
>>> Add driver for the Intersil ISL7998x Analog to MIPI CSI-2/BT656 decoder.
>>> This chip supports 1/2/4 analog video inputs and converts them into
>>> 1/2/4 VCs in MIPI CSI2 stream.
>>>
>>> This driver currently supports ISL79987 and both 720x480 and 720x576
>>> resolutions, however as per specification, all inputs must use the
>>> same resolution and standard. The only supported pixel format is now
>>> YUYV/YUV422. The chip should support RGB565 on the CSI2 as well, but
>>> this is currently unsupported.
>>
>> There are *lots* of checkpatch warnings (on strict mode) due to the
>> usage of CamelCase macros. Please fix. Just doing that should be enough
>> to solve them:
>>
>>    sed s,ISL7998x_REG_Px_ACA_FLEX_WIN_Y_BL_H,ISL7998X_REG_PX_ACA_FLEX_WIN_Y_BL_H,g -i drivers/media/i2c/isl7998x.c
>>    sed s,ISL7998x,ISL7998X,g -i drivers/media/i2c/isl7998x.c
>>    sed s,ISL7998X_REG_Pn,ISL7998X_REG_PN, -i drivers/media/i2c/isl7998x.c
>>    sed s,ISL7998X_REG_Pn,ISL7998X_REG_PN,g -i drivers/media/i2c/isl7998x.c
>>    sed s,ISL7998X_REG_PX,ISL7998X_REG_PX,g -i drivers/media/i2c/isl7998x.c
>>    sed s,ISL7998X_REG_Px,ISL7998X_REG_PX,g -i drivers/media/i2c/isl7998x.c
> 
> These are easy to fix.

Isn't that counter-productive to rename Pn (which represents P0, P1, 
P2...) to PN which is hard to tell what it represents ?

I would say checkpatch strict mode is wrong here and the Pn is more 
readable.

Note that there is sed 's@\<ISL7998[^ ]\+\>@\U&@' regex too which turns 
all those macros into uppercase if that's what you're after, but I don't 
like that approach.

[...]

  reply	other threads:[~2021-12-16 11:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-29 11:27 [PATCH v9 0/3] media: i2c: isl7998x: Add driver for Intersil ISL7998x Michael Tretter
2021-11-29 11:27 ` [PATCH v9 1/3] media: imx6-mipi-csi2: use pre_streamon callback to set sensor into LP11 Michael Tretter
2021-11-29 11:27 ` [PATCH v9 2/3] media: dt-bindings: Add Intersil ISL79987 DT bindings Michael Tretter
2021-11-29 11:27 ` [PATCH v9 3/3] media: i2c: isl7998x: Add driver for Intersil ISL7998x Michael Tretter
2021-12-02  8:31   ` Sakari Ailus
2021-12-03  8:28     ` Michael Tretter
2021-12-14 10:14   ` Mauro Carvalho Chehab
2021-12-16 11:41     ` Michael Tretter
2021-12-16 11:57       ` Marek Vasut [this message]
2021-12-16 12:12       ` 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=44ca558e-8481-89e6-a190-42cef8dddefb@denx.de \
    --to=marex@denx.de \
    --cc=devicetree@vger.kernel.org \
    --cc=hverkuil@xs4all.nl \
    --cc=ian.arkver.dev@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-media@vger.kernel.org \
    --cc=m.tretter@pengutronix.de \
    --cc=mchehab@kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=robh+dt@kernel.org \
    --cc=sakari.ailus@linux.intel.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).