All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Felipe Balbi <felipe.balbi@nokia.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH] I2C: TWL4030: General cleanup in twl4030's driver
Date: Fri, 11 Apr 2008 12:11:38 -0700	[thread overview]
Message-ID: <20080411191138.GG7717@atomide.com> (raw)
In-Reply-To: <1207831237-24216-1-git-send-email-felipe.balbi@nokia.com>

* Felipe Balbi <felipe.balbi@nokia.com> [080410 05:42]:
> TWL4030's Kconfig entries was a bit mixed.
> Fix some missing '\n'
> Add missing space in two-lined printks

Pushing this one too, sorry looks like I pushed them in wrong order,
this should have gone in before your clean-up series :)

Tony



> Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
> ---
>  drivers/i2c/chips/Kconfig             |    8 ++++----
>  drivers/i2c/chips/twl4030-core.c      |    2 +-
>  drivers/i2c/chips/twl4030-pwrbutton.c |   10 +++++-----
>  drivers/i2c/chips/twl4030-usb.c       |    2 +-
>  4 files changed, 11 insertions(+), 11 deletions(-)
> 
> diff --git a/drivers/i2c/chips/Kconfig b/drivers/i2c/chips/Kconfig
> index 4896f84..c3de735 100644
> --- a/drivers/i2c/chips/Kconfig
> +++ b/drivers/i2c/chips/Kconfig
> @@ -132,10 +132,6 @@ config TWL4030_USB
>  	bool "TWL4030 USB Transceiver Driver"
>  	depends on TWL4030_CORE
>  
> -config TWL4030_PWRBUTTON
> -        bool "TWL4030 Power button Driver"
> -	depends on TWL4030_CORE
> -
>  choice
>  	prompt "Transceiver mode"
>  	depends on TWL4030_USB
> @@ -143,6 +139,10 @@ choice
>  	  TWL4030 USB transceiver can operate in various
>  	  mutually-exclusive modes. Select one of them.
>  
> +config TWL4030_PWRBUTTON
> +        bool "TWL4030 Power button Driver"
> +	depends on TWL4030_CORE
> +
>  config TWL4030_USB_HS_ULPI
>  	depends on TWL4030_USB
>  	bool "High-speed ULPI"
> diff --git a/drivers/i2c/chips/twl4030-core.c b/drivers/i2c/chips/twl4030-core.c
> index 5868a81..49bd63a 100644
> --- a/drivers/i2c/chips/twl4030-core.c
> +++ b/drivers/i2c/chips/twl4030-core.c
> @@ -885,7 +885,7 @@ static int __init twl4030_init(void)
>  	int res;
>  
>  	if ((res = i2c_add_driver(&twl4030_driver))) {
> -		printk(KERN_ERR "TWL4030: Driver registration failed \n");
> +		printk(KERN_ERR "TWL4030: Driver registration failed\n");
>  		return res;
>  	}
>  
> diff --git a/drivers/i2c/chips/twl4030-pwrbutton.c b/drivers/i2c/chips/twl4030-pwrbutton.c
> index a541ed6..cbc31aa 100644
> --- a/drivers/i2c/chips/twl4030-pwrbutton.c
> +++ b/drivers/i2c/chips/twl4030-pwrbutton.c
> @@ -64,7 +64,7 @@ static irqreturn_t powerbutton_irq(int irq, void *dev_id)
>  				 value & PWR_PWRON_IRQ);
>  	} else {
>  		printk(KERN_WARNING "I2C error %d while reading TWL4030"
> -			"PM_MASTER STS_HW_CONDITIONS register\n", err);
> +			" PM_MASTER STS_HW_CONDITIONS register\n", err);
>  	}
>  
>  	return IRQ_HANDLED;
> @@ -101,7 +101,7 @@ static int __init twl4030_pwrbutton_init(void)
>  	err = twl4030_i2c_read_u8(TWL4030_MODULE_INT, &value, PWR_IMR1);
>  	if (err) {
>  		printk(KERN_WARNING "I2C error %d while reading TWL4030"
> -					"INT PWR_IMR1 register\n", err);
> +					" INT PWR_IMR1 register\n", err);
>  
>  		goto free_input_dev;
>  	}
> @@ -110,14 +110,14 @@ static int __init twl4030_pwrbutton_init(void)
>  				   value & (~PWR_PWRON_IRQ), PWR_IMR1);
>  	if (err) {
>  		printk(KERN_WARNING "I2C error %d while writing TWL4030"
> -				    "INT PWR_IMR1 register\n", err);
> +				    " INT PWR_IMR1 register\n", err);
>  		goto free_input_dev;
>  	}
>  
>  	err = twl4030_i2c_read_u8(TWL4030_MODULE_INT, &value, PWR_EDR1);
>  	if (err) {
>  		printk(KERN_WARNING "I2C error %d while reading TWL4030"
> -					"INT PWR_EDR1 register\n", err);
> +					" INT PWR_EDR1 register\n", err);
>  		goto free_input_dev;
>  	}
>  
> @@ -126,7 +126,7 @@ static int __init twl4030_pwrbutton_init(void)
>  
>  	if (err) {
>  		printk(KERN_WARNING "I2C error %d while writing TWL4030"
> -					"INT PWR_EDR1 register\n", err);
> +					" INT PWR_EDR1 register\n", err);
>  		goto free_input_dev;
>  	}
>  
> diff --git a/drivers/i2c/chips/twl4030-usb.c b/drivers/i2c/chips/twl4030-usb.c
> index a238904..1df5427 100644
> --- a/drivers/i2c/chips/twl4030-usb.c
> +++ b/drivers/i2c/chips/twl4030-usb.c
> @@ -726,7 +726,7 @@ static int __init twl4030_usb_init(void)
>  
>  	otg_set_transceiver(&twl->otg);
>  
> -	printk(KERN_INFO "Initialized TWL4030 USB module");
> +	printk(KERN_INFO "Initialized TWL4030 USB module\n");
>  
>  	return 0;
>  }
> -- 
> 1.5.5.23.g2a5fe
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2008-04-11 19:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-10 12:40 [PATCH] I2C: TWL4030: General cleanup in twl4030's driver Felipe Balbi
2008-04-11 19:11 ` Tony Lindgren [this message]

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=20080411191138.GG7717@atomide.com \
    --to=tony@atomide.com \
    --cc=felipe.balbi@nokia.com \
    --cc=linux-omap@vger.kernel.org \
    /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 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.