Skip to content

Commit

Permalink
ASoC: tpa6130a2: Remove model_id from platform data
Browse files Browse the repository at this point in the history
The model_id is no longer needed within the platform_data
for the TPA driver since the model of TPA specified
with the device name (tpa6130a2/tpa6140a2).

Also update rx51 (the only affected user) to use the device name rather
than platform data.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Peter Ujfalusi authored and Mark Brown committed Sep 21, 2011
1 parent 0744100 commit 0722d05
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion arch/arm/mach-omap2/board-rx51-peripherals.c
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,6 @@ static struct twl4030_platform_data rx51_twldata __initdata = {
};

static struct tpa6130a2_platform_data rx51_tpa6130a2_data __initdata_or_module = {
.id = TPA6130A2,
.power_gpio = 98,
};

Expand Down
6 changes: 0 additions & 6 deletions include/sound/tpa6130a2-plat.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@
#ifndef TPA6130A2_PLAT_H
#define TPA6130A2_PLAT_H

enum tpa_model {
TPA6130A2,
TPA6140A2,
};

struct tpa6130a2_platform_data {
enum tpa_model id;
int power_gpio;
};

Expand Down
5 changes: 5 additions & 0 deletions sound/soc/codecs/tpa6130a2.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@

#include "tpa6130a2.h"

enum tpa_model {
TPA6130A2,
TPA6140A2,
};

static struct i2c_client *tpa6130a2_client;

/* This struct is used to save the context */
Expand Down

0 comments on commit 0722d05

Please sign in to comment.