* [PATCH]imx-drm coding style fixes
@ 2014-09-18 22:57 Rene Kolarik
2014-09-19 4:22 ` Giedrius Statkevičius
0 siblings, 1 reply; 2+ messages in thread
From: Rene Kolarik @ 2014-09-18 22:57 UTC (permalink / raw)
To: gregkh, shawn.guo, kernel; +Cc: linux-kernel, devel
[-- Attachment #1: Type: text/plain, Size: 130 bytes --]
Hello,
I've fixed coding style issues in drivers/staging/imx-drm directory. This is a part of Eudyptula Challenge.
Rene Kolarik
[-- Attachment #2: imx-coding-style.patch --]
[-- Type: text/x-diff, Size: 3347 bytes --]
Signed-off-by: Rene Kolarik <rene.kolarik@gmail.com>
diff --git a/Documentation/devicetree/bindings/arm/fsl.txt b/Documentation/devicetree/bindings/arm/fsl.txt
index e935d7d..4004bb8 100644
--- a/Documentation/devicetree/bindings/arm/fsl.txt
+++ b/Documentation/devicetree/bindings/arm/fsl.txt
@@ -71,6 +71,10 @@ i.MX53 generic board
Required root node properties:
- compatible = "fsl,imx53";
+i.MX53 Television Encoder
+Required root node properties:
+ - compatible = "fsl,imx53-tve";
+
i.MX6q generic board
Required root node properties:
- compatible = "fsl,imx6q";
diff --git a/drivers/staging/imx-drm/imx-drm-core.c b/drivers/staging/imx-drm/imx-drm-core.c
index e9fba97..a04b3ef 100644
--- a/drivers/staging/imx-drm/imx-drm-core.c
+++ b/drivers/staging/imx-drm/imx-drm-core.c
@@ -630,7 +630,8 @@ static int imx_drm_platform_probe(struct platform_device *pdev)
continue;
}
- component_match_add(&pdev->dev, &match, compare_of, remote);
+ component_match_add(&pdev->dev, &match, compare_of,
+ remote);
of_node_put(remote);
}
of_node_put(port);
diff --git a/drivers/staging/imx-drm/imx-hdmi.c b/drivers/staging/imx-drm/imx-hdmi.c
index 18c9ccd..aaec6b2 100644
--- a/drivers/staging/imx-drm/imx-hdmi.c
+++ b/drivers/staging/imx-drm/imx-hdmi.c
@@ -323,8 +323,7 @@ static unsigned int hdmi_compute_cts(unsigned int freq, unsigned long pixel_clk,
}
if (ratio == 100)
return cts;
- else
- return (cts * ratio) / 100;
+ return (cts * ratio) / 100;
}
static void hdmi_set_clk_regenerator(struct imx_hdmi *hdmi,
diff --git a/drivers/staging/imx-drm/imx-tve.c b/drivers/staging/imx-drm/imx-tve.c
index 31fe7cf..a12202a 100644
--- a/drivers/staging/imx-drm/imx-tve.c
+++ b/drivers/staging/imx-drm/imx-tve.c
@@ -430,10 +430,9 @@ static long clk_tve_di_round_rate(struct clk_hw *hw, unsigned long rate,
div = *prate / rate;
if (div >= 4)
return *prate / 4;
- else if (div >= 2)
+ if (div >= 2)
return *prate / 2;
- else
- return *prate;
+ return *prate;
}
static int clk_tve_di_set_rate(struct clk_hw *hw, unsigned long rate,
@@ -538,7 +537,7 @@ static struct regmap_config tve_regmap_config = {
.max_register = 0xdc,
};
-static const char *imx_tve_modes[] = {
+static const char * const imx_tve_modes[] = {
[TVE_MODE_TVOUT] = "tvout",
[TVE_MODE_VGA] = "vga",
};
@@ -666,7 +665,8 @@ static int imx_tve_bind(struct device *dev, struct device *master, void *data)
ret = regmap_read(tve->regmap, TVE_COM_CONF_REG, &val);
if (ret < 0) {
- dev_err(dev, "failed to read configuration register: %d\n", ret);
+ dev_err(dev, "failed to read configuration register: %d\n",
+ ret);
return ret;
}
if (val != 0x00100000) {
diff --git a/drivers/staging/imx-drm/parallel-display.c b/drivers/staging/imx-drm/parallel-display.c
index 1998846..601439b 100644
--- a/drivers/staging/imx-drm/parallel-display.c
+++ b/drivers/staging/imx-drm/parallel-display.c
@@ -228,7 +228,8 @@ static int imx_pd_bind(struct device *dev, struct device *master, void *data)
else if (!strcmp(fmt, "bgr666"))
imxpd->interface_pix_fmt = V4L2_PIX_FMT_BGR666;
else if (!strcmp(fmt, "lvds666"))
- imxpd->interface_pix_fmt = v4l2_fourcc('L', 'V', 'D', '6');
+ imxpd->interface_pix_fmt = v4l2_fourcc(
+ 'L', 'V', 'D', '6');
}
panel_node = of_parse_phandle(np, "fsl,panel", 0);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH]imx-drm coding style fixes
2014-09-18 22:57 [PATCH]imx-drm coding style fixes Rene Kolarik
@ 2014-09-19 4:22 ` Giedrius Statkevičius
0 siblings, 0 replies; 2+ messages in thread
From: Giedrius Statkevičius @ 2014-09-19 4:22 UTC (permalink / raw)
To: Rene Kolarik, gregkh, shawn.guo, kernel; +Cc: devel, linux-kernel
On 2014.09.19 01:57, Rene Kolarik wrote:
> Hello,
>
> I've fixed coding style issues in drivers/staging/imx-drm directory. This is a part of Eudyptula Challenge.
Please submit your patches "inline" (look at /Documentation/SubmittingPatches section 7). Also, think about if it's worth seperating this patch into two or more since you are doing more than what you're saying in the description.
Furthermore, your subject line is kind of wrong. Perhaps it should look something like this:
[PATCH] drivers: staging: imx-drm style cleanup (SubmittingPatches section 15)
Finally, you didn't mention what coding style issues you've fixed and these kind of patches are called clean-up patches.
>
> Rene Kolarik
>
>
>
> _______________________________________________
> devel mailing list
> devel@linuxdriverproject.org
> http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
>
--
thanks,
Giedrius
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-19 4:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-18 22:57 [PATCH]imx-drm coding style fixes Rene Kolarik
2014-09-19 4:22 ` Giedrius Statkevičius
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.