Re: [PATCH] I2C: TWL4030: Fix wrong variable warning

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

 



* Felipe Balbi <felipe.balbi@xxxxxxxxx> [080411 04:53]:
> twl4030_i2c_write_u8 expects a u8 variable.
> Change ctrl to be u8 in power_companion_init().

Pushing.

Tony


> Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxx>
> ---
>  drivers/i2c/chips/twl4030-core.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/i2c/chips/twl4030-core.c b/drivers/i2c/chips/twl4030-core.c
> index eedbebd..934433e 100644
> --- a/drivers/i2c/chips/twl4030-core.c
> +++ b/drivers/i2c/chips/twl4030-core.c
> @@ -679,7 +679,8 @@ static int unprotect_pm_master(void)
>  static int power_companion_init(void)
>  {
>  	struct clk *osc;
> -	u32 rate, ctrl = HFCLK_FREQ_26_MHZ;
> +	u32 rate;
> +	u8 ctrl = HFCLK_FREQ_26_MHZ;
>  	int e = 0;
>  
>  	if (cpu_is_omap2430())
> -- 
> 1.5.5.29.g7134
> 
> --
> 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
--
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