Re: [PATCH 11/11] TWL4030: Codec: Fix fucntion declaration error

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

 



On Thursday 26 August 2010 23:56:49 ext G, Manjunath Kondaiah wrote:
> From: Manjunatha GK <manjugk@xxxxxx>
> 
> Fixes sparse warning for the below error
> 
> drivers/mfd/twl4030-codec.c:118:5: error: symbol
> 'twl4030_codec_disable_resource' redeclared with different type
> (originally declared at include/linux/mfd/twl4030- codec.h:268) -
> incompatible argument 1 (different signedness)
> 
> Signed-off-by: Manjunatha GK <manjugk@xxxxxx>
> Cc: Tony Lindgren <tony@xxxxxxxxxxx>
> Cc: Nishanth Menon <nm@xxxxxx>
> ---
>  include/linux/mfd/twl4030-codec.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/include/linux/mfd/twl4030-codec.h
> b/include/linux/mfd/twl4030-codec.h index 2ec317c..0f7300e 100644
> --- a/include/linux/mfd/twl4030-codec.h
> +++ b/include/linux/mfd/twl4030-codec.h
> @@ -265,7 +265,7 @@ enum twl4030_codec_res {
>  	TWL4030_CODEC_RES_MAX,
>  };
> 
> -int twl4030_codec_disable_resource(enum twl4030_codec_res id);
> +int twl4030_codec_disable_resource(unsigned id);
>  int twl4030_codec_enable_resource(enum twl4030_codec_res id);
>  unsigned int twl4030_codec_get_mclk(void);

I have no idea how this happened, but it would be better to correct the driver 
instead the header.

-- 
Péter
--
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