Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 839d271c authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Mark Brown
Browse files

ASoC: codecs: Remove unused reg_cache fields from device structs



The multi-component patch(commit f0fba2ad) moved the allocation of the
register cache from the driver to the ASoC core. Most drivers where adjusted to
this, but there are quite a few drivers left which now have an unused reg_cache field in
their private device struct.
This patch removes these unused fields.

Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 6dc47e97
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -146,7 +146,6 @@ struct pm860x_priv {


	int			irq[4];
	int			irq[4];
	unsigned char		name[4][MAX_NAME_LEN];
	unsigned char		name[4][MAX_NAME_LEN];
	unsigned char		reg_cache[REG_CACHE_SIZE];
};
};


/* -9450dB to 0dB in 150dB steps ( mute instead of -9450dB) */
/* -9450dB to 0dB in 150dB steps ( mute instead of -9450dB) */
+0 −1
Original line number Original line Diff line number Diff line
@@ -23,7 +23,6 @@


/* codec private data */
/* codec private data */
struct ad193x_priv {
struct ad193x_priv {
	u8 reg_cache[AD193X_NUM_REGS];
	enum snd_soc_control_type bus_type;
	enum snd_soc_control_type bus_type;
	void *control_data;
	void *control_data;
	int sysclk;
	int sysclk;
+0 −1
Original line number Original line Diff line number Diff line
@@ -27,7 +27,6 @@
struct ak4671_priv {
struct ak4671_priv {
	enum snd_soc_control_type control_type;
	enum snd_soc_control_type control_type;
	void *control_data;
	void *control_data;
	u8 reg_cache[AK4671_CACHEREGNUM];
};
};


/* ak4671 register cache & default register settings */
/* ak4671 register cache & default register settings */
+0 −1
Original line number Original line Diff line number Diff line
@@ -114,7 +114,6 @@ static const char *supply_names[] = {
struct cs4270_private {
struct cs4270_private {
	enum snd_soc_control_type control_type;
	enum snd_soc_control_type control_type;
	void *control_data;
	void *control_data;
	u8 reg_cache[CS4270_NUMREGS];
	unsigned int mclk; /* Input frequency of the MCLK pin */
	unsigned int mclk; /* Input frequency of the MCLK pin */
	unsigned int mode; /* The mode (I2S or left-justified) */
	unsigned int mode; /* The mode (I2S or left-justified) */
	unsigned int slave_mode;
	unsigned int slave_mode;
+0 −1
Original line number Original line Diff line number Diff line
@@ -46,7 +46,6 @@ struct cs42l51_private {
	unsigned int mclk;
	unsigned int mclk;
	unsigned int audio_mode;	/* The mode (I2S or left-justified) */
	unsigned int audio_mode;	/* The mode (I2S or left-justified) */
	enum master_slave_mode func;
	enum master_slave_mode func;
	u8 reg_cache[CS42L51_NUMREGS];
};
};


#define CS42L51_FORMATS ( \
#define CS42L51_FORMATS ( \
Loading