* [PATCH v2 0/4] patchset for clean-ups in media
@ 2020-03-13 21:54 Kaaira Gupta
2020-03-13 21:54 ` [PATCH v2 1/4] staging: media: allegro: align with parenthesis Kaaira Gupta
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Kaaira Gupta @ 2020-03-13 21:54 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Greg Kroah-Hartman, outreachy-kernel; +Cc: Kaaira Gupta
Changes since v1:
Renumbered the patches to account for a deleted patch in the series.
Patch 1: No Change
Patch 2: No Change
Patch 3: No Change
Patch 4: Correct subject line from `hanto` to `hantro`. And remove
unnecessary parentheses around `vpu` and `val` as well.
Patch 5: Deleted: No precedence issues possible.
Kaaira Gupta (4):
staging: media: allegro: align with parenthesis
staging: media: imx: remove temporary variable
staging: media: imx: remove parentheses
staging: media: hantro: remove parentheses
drivers/staging/media/allegro-dvt/allegro-core.c | 12 ++++++------
drivers/staging/media/hantro/hantro_postproc.c | 12 ++++++------
drivers/staging/media/imx/imx6-mipi-csi2.c | 9 +++------
drivers/staging/media/imx/imx7-mipi-csis.c | 2 +-
4 files changed, 16 insertions(+), 19 deletions(-)
--
2.17.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 1/4] staging: media: allegro: align with parenthesis
2020-03-13 21:54 [PATCH v2 0/4] patchset for clean-ups in media Kaaira Gupta
@ 2020-03-13 21:54 ` Kaaira Gupta
2020-03-13 21:54 ` [PATCH v2 2/4] staging: media: imx: remove temporary variable Kaaira Gupta
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Kaaira Gupta @ 2020-03-13 21:54 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Greg Kroah-Hartman, outreachy-kernel; +Cc: Kaaira Gupta
Align the lines of allegro-core.c with open parenthesis by giving proper
tabs and thereby fix checkpatch.pl warnings of matching alignment with
open parenthesis. Do it only for lines where character limit doesn't
exceed 80 characters.
Signed-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in>
---
drivers/staging/media/allegro-dvt/allegro-core.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/media/allegro-dvt/allegro-core.c b/drivers/staging/media/allegro-dvt/allegro-core.c
index 0a09b3622e78..1162cc38f3fc 100644
--- a/drivers/staging/media/allegro-dvt/allegro-core.c
+++ b/drivers/staging/media/allegro-dvt/allegro-core.c
@@ -2324,10 +2324,10 @@ static int allegro_open(struct file *file)
0, ALLEGRO_GOP_SIZE_MAX,
1, channel->gop_size);
v4l2_ctrl_new_std(handler,
- &allegro_ctrl_ops,
- V4L2_CID_MIN_BUFFERS_FOR_OUTPUT,
- 1, 32,
- 1, 1);
+ &allegro_ctrl_ops,
+ V4L2_CID_MIN_BUFFERS_FOR_OUTPUT,
+ 1, 32,
+ 1, 1);
channel->fh.ctrl_handler = handler;
channel->mcu_channel_id = -1;
@@ -2933,8 +2933,8 @@ static int allegro_probe(struct platform_device *pdev)
return -EINVAL;
}
sram_regs = devm_ioremap(&pdev->dev,
- sram_res->start,
- resource_size(sram_res));
+ sram_res->start,
+ resource_size(sram_res));
if (IS_ERR(sram_regs)) {
dev_err(&pdev->dev, "failed to map sram\n");
return PTR_ERR(sram_regs);
--
2.17.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 2/4] staging: media: imx: remove temporary variable
2020-03-13 21:54 [PATCH v2 0/4] patchset for clean-ups in media Kaaira Gupta
2020-03-13 21:54 ` [PATCH v2 1/4] staging: media: allegro: align with parenthesis Kaaira Gupta
@ 2020-03-13 21:54 ` Kaaira Gupta
2020-03-13 21:54 ` [PATCH v2 3/4] staging: media: imx: remove parentheses Kaaira Gupta
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Kaaira Gupta @ 2020-03-13 21:54 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Greg Kroah-Hartman, outreachy-kernel; +Cc: Kaaira Gupta
Remove unnecessary local variable `ret` in file `imx6-mipi-csi2.c` and
directly returning the value assigned to `ret.`
Signed-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in>
---
drivers/staging/media/imx/imx6-mipi-csi2.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/media/imx/imx6-mipi-csi2.c b/drivers/staging/media/imx/imx6-mipi-csi2.c
index cd3dd6e33ef0..8ab823042c09 100644
--- a/drivers/staging/media/imx/imx6-mipi-csi2.c
+++ b/drivers/staging/media/imx/imx6-mipi-csi2.c
@@ -592,22 +592,19 @@ static int csi2_probe(struct platform_device *pdev)
csi2->pllref_clk = devm_clk_get(&pdev->dev, "ref");
if (IS_ERR(csi2->pllref_clk)) {
v4l2_err(&csi2->sd, "failed to get pll reference clock\n");
- ret = PTR_ERR(csi2->pllref_clk);
- return ret;
+ return PTR_ERR(csi2->pllref_clk);
}
csi2->dphy_clk = devm_clk_get(&pdev->dev, "dphy");
if (IS_ERR(csi2->dphy_clk)) {
v4l2_err(&csi2->sd, "failed to get dphy clock\n");
- ret = PTR_ERR(csi2->dphy_clk);
- return ret;
+ return PTR_ERR(csi2->dphy_clk);
}
csi2->pix_clk = devm_clk_get(&pdev->dev, "pix");
if (IS_ERR(csi2->pix_clk)) {
v4l2_err(&csi2->sd, "failed to get pixel clock\n");
- ret = PTR_ERR(csi2->pix_clk);
- return ret;
+ return PTR_ERR(csi2->pix_clk);
}
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
--
2.17.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 3/4] staging: media: imx: remove parentheses
2020-03-13 21:54 [PATCH v2 0/4] patchset for clean-ups in media Kaaira Gupta
2020-03-13 21:54 ` [PATCH v2 1/4] staging: media: allegro: align with parenthesis Kaaira Gupta
2020-03-13 21:54 ` [PATCH v2 2/4] staging: media: imx: remove temporary variable Kaaira Gupta
@ 2020-03-13 21:54 ` Kaaira Gupta
2020-03-13 21:54 ` [PATCH v2 4/4] staging: media: hantro: " Kaaira Gupta
2020-03-17 1:18 ` [Outreachy kernel] [PATCH v2 0/4] patchset for clean-ups in media Stefano Brivio
4 siblings, 0 replies; 6+ messages in thread
From: Kaaira Gupta @ 2020-03-13 21:54 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Greg Kroah-Hartman, outreachy-kernel; +Cc: Kaaira Gupta
Remove unnecessary parentheses around a binary OR in file
imx7-mipi-csis.c. Check reported by coccinelle.
Signed-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in>
---
drivers/staging/media/imx/imx7-mipi-csis.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/media/imx/imx7-mipi-csis.c b/drivers/staging/media/imx/imx7-mipi-csis.c
index 383abecb3bec..fff676a54990 100644
--- a/drivers/staging/media/imx/imx7-mipi-csis.c
+++ b/drivers/staging/media/imx/imx7-mipi-csis.c
@@ -404,7 +404,7 @@ static void mipi_csis_set_hsync_settle(struct csi_state *state, int hs_settle)
{
u32 val = mipi_csis_read(state, MIPI_CSIS_DPHYCTRL);
- val = ((val & ~MIPI_CSIS_DPHYCTRL_HSS_MASK) | (hs_settle << 24));
+ val = (val & ~MIPI_CSIS_DPHYCTRL_HSS_MASK) | (hs_settle << 24);
mipi_csis_write(state, MIPI_CSIS_DPHYCTRL, val);
}
--
2.17.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 4/4] staging: media: hantro: remove parentheses
2020-03-13 21:54 [PATCH v2 0/4] patchset for clean-ups in media Kaaira Gupta
` (2 preceding siblings ...)
2020-03-13 21:54 ` [PATCH v2 3/4] staging: media: imx: remove parentheses Kaaira Gupta
@ 2020-03-13 21:54 ` Kaaira Gupta
2020-03-17 1:18 ` [Outreachy kernel] [PATCH v2 0/4] patchset for clean-ups in media Stefano Brivio
4 siblings, 0 replies; 6+ messages in thread
From: Kaaira Gupta @ 2020-03-13 21:54 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Greg Kroah-Hartman, outreachy-kernel; +Cc: Kaaira Gupta
Remove unnecessary parentheses in file hantro_postproc.c. Check reported
by coccinelle.
Signed-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in>
---
drivers/staging/media/hantro/hantro_postproc.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/media/hantro/hantro_postproc.c b/drivers/staging/media/hantro/hantro_postproc.c
index 28a85d301d7f..44062ffceaea 100644
--- a/drivers/staging/media/hantro/hantro_postproc.c
+++ b/drivers/staging/media/hantro/hantro_postproc.c
@@ -14,16 +14,16 @@
#define HANTRO_PP_REG_WRITE(vpu, reg_name, val) \
{ \
- hantro_reg_write((vpu), \
- &((vpu)->variant->postproc_regs->reg_name), \
- (val)); \
+ hantro_reg_write(vpu, \
+ &(vpu)->variant->postproc_regs->reg_name, \
+ val); \
}
#define HANTRO_PP_REG_WRITE_S(vpu, reg_name, val) \
{ \
- hantro_reg_write_s((vpu), \
- &((vpu)->variant->postproc_regs->reg_name), \
- (val)); \
+ hantro_reg_write_s(vpu, \
+ &(vpu)->variant->postproc_regs->reg_name, \
+ val); \
}
#define VPU_PP_IN_YUYV 0x0
--
2.17.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Outreachy kernel] [PATCH v2 0/4] patchset for clean-ups in media
2020-03-13 21:54 [PATCH v2 0/4] patchset for clean-ups in media Kaaira Gupta
` (3 preceding siblings ...)
2020-03-13 21:54 ` [PATCH v2 4/4] staging: media: hantro: " Kaaira Gupta
@ 2020-03-17 1:18 ` Stefano Brivio
4 siblings, 0 replies; 6+ messages in thread
From: Stefano Brivio @ 2020-03-17 1:18 UTC (permalink / raw)
To: Kaaira Gupta; +Cc: Mauro Carvalho Chehab, Greg Kroah-Hartman, outreachy-kernel
On Sat, 14 Mar 2020 03:24:02 +0530
Kaaira Gupta <kgupta@es.iitr.ac.in> wrote:
> Changes since v1:
> Renumbered the patches to account for a deleted patch in the series.
>
> Patch 1: No Change
> Patch 2: No Change
> Patch 3: No Change
> Patch 4: Correct subject line from `hanto` to `hantro`. And remove
> unnecessary parentheses around `vpu` and `val` as well.
> Patch 5: Deleted: No precedence issues possible.
>
> Kaaira Gupta (4):
> staging: media: allegro: align with parenthesis
> staging: media: imx: remove temporary variable
> staging: media: imx: remove parentheses
> staging: media: hantro: remove parentheses
For the series,
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
--
Stefano
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-03-17 1:18 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-13 21:54 [PATCH v2 0/4] patchset for clean-ups in media Kaaira Gupta
2020-03-13 21:54 ` [PATCH v2 1/4] staging: media: allegro: align with parenthesis Kaaira Gupta
2020-03-13 21:54 ` [PATCH v2 2/4] staging: media: imx: remove temporary variable Kaaira Gupta
2020-03-13 21:54 ` [PATCH v2 3/4] staging: media: imx: remove parentheses Kaaira Gupta
2020-03-13 21:54 ` [PATCH v2 4/4] staging: media: hantro: " Kaaira Gupta
2020-03-17 1:18 ` [Outreachy kernel] [PATCH v2 0/4] patchset for clean-ups in media Stefano Brivio
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.