Re: [PATCH 9/9]HDQ driver: Fix indentation and commenting style

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 24, 2008 at 05:06:30PM +0530, ext Madhusudhan Chikkature wrote:
> From: Madhusudhan Chikkature<madhu.cr@xxxxxx>
> 
> This patch fixes the indentation, commenting style of a single line comment.
> 
> Signed-off-by: Madhusudhan Chikkature<madhu.cr@xxxxxx>
> ---
>  drivers/w1/masters/omap_hdq.c |   81 +++++++++++++++---------------------------
>  1 files changed, 29 insertions(+), 52 deletions(-)
> 
> Index: linux-omap-2.6/drivers/w1/masters/omap_hdq.c
> ===================================================================
> --- linux-omap-2.6.orig/drivers/w1/masters/omap_hdq.c	2008-09-24
> 14:41:43.000000000 +0530
> +++ linux-omap-2.6/drivers/w1/masters/omap_hdq.c	2008-09-24 15:37:18.000000000
> +0530
> @@ -77,12 +77,12 @@ static int __init omap_hdq_probe(struct
>  static int omap_hdq_remove(struct platform_device *pdev);
> 
>  static struct platform_driver omap_hdq_driver = {
> -	.probe = omap_hdq_probe,
> -	.remove = omap_hdq_remove,
> -	.suspend = NULL,
> -	.resume = NULL,
> -	.driver = {
> -		.name = "omap_hdq",
> +	.probe =	omap_hdq_probe,
> +	.remove =	omap_hdq_remove,
> +	.suspend =	NULL,
> +	.resume =	NULL,

suspend and resume lines can be removed, that platform_driver is static,
which means any unitiliazed member will be nulled.

-- 
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux