Skip to contentSkip to conversation

mfd: twl4030-audio: Fix argument type for twl4030_audio_disable_resource()

PATCH Applied Mark Brown 3 participants 3 messages Mar 2, 2013 – Mar 13, 2013

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 mfd: twl4030-audio: Fix argument type for twl4030_audio_disable_resource()

Looks like the conversion to enum was missed for the definition of this function, the declaration has been updated.

---
 drivers/mfd/twl4030-audio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/twl4030-audio.c +1 -1
index e16edca..d2ab222 100644
@@ -118,7 +118,7 @@ EXPORT_SYMBOL_GPL(twl4030_audio_enable_resource);
  * Disable the resource.
  * The function returns with error or the content of the register
  */
-int twl4030_audio_disable_resource(unsigned id)
+int twl4030_audio_disable_resource(enum twl4030_audio_res id)
 {
 	struct twl4030_audio *audio = platform_get_drvdata(twl4030_audio_dev);
 	int val;
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Mark Brown

Looks like the conversion to enum was missed for the definition of this function, the declaration has been updated.

Quoted 20 lines
---
 drivers/mfd/twl4030-audio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/twl4030-audio.c +1 -1
index e16edca..d2ab222 100644
@@ -118,7 +118,7 @@ EXPORT_SYMBOL_GPL(twl4030_audio_enable_resource);
  * Disable the resource.
  * The function returns with error or the content of the register
  */
-int twl4030_audio_disable_resource(unsigned id)
+int twl4030_audio_disable_resource(enum twl4030_audio_res id)
 {
 	struct twl4030_audio *audio = platform_get_drvdata(twl4030_audio_dev);
 	int val;
Signature · 1 line
Péter
Applied
#2 lore raw
In reply to Mark Brown
Quoted 7 lines · Mark Brown

Looks like the conversion to enum was missed for the definition of this function, the declaration has been updated.

---
 drivers/mfd/twl4030-audio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to my mfd-fixes tree, thanks.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/