diff options
| author | Vitaly Rodionov <vitalyr@opensource.cirrus.com> | 2025-10-23 12:03:11 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-10-27 14:10:24 +0300 |
| commit | f97ebfda8da28a77a0218a448829451ba7e30d5d (patch) | |
| tree | 6b328e891c3da759a34a48c21df291e2c3d2b831 | |
| parent | 1e0722a77b4e263854a812c9c106ddef8fd56720 (diff) | |
| download | linux-f97ebfda8da28a77a0218a448829451ba7e30d5d.tar.xz | |
ASoC: cs530x: Remove unused struct members and constants
Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com>
Link: https://patch.msgid.link/20251023090327.58275-4-vitalyr@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | sound/soc/codecs/cs530x.c | 6 | ||||
| -rw-r--r-- | sound/soc/codecs/cs530x.h | 5 |
2 files changed, 1 insertions, 10 deletions
diff --git a/sound/soc/codecs/cs530x.c b/sound/soc/codecs/cs530x.c index 498005674a3f..a4c9127495c5 100644 --- a/sound/soc/codecs/cs530x.c +++ b/sound/soc/codecs/cs530x.c @@ -21,9 +21,6 @@ #include "cs530x.h" -#define CS530X_MAX_ADC_CH 8 -#define CS530X_MIN_ADC_CH 2 - static const char *cs530x_supply_names[CS530X_NUM_SUPPLIES] = { "vdd-a", "vdd-io", @@ -517,7 +514,6 @@ static int cs530x_hw_params(struct snd_pcm_substream *substream, return -EINVAL; } - cs530x->fs = fs; regmap_update_bits(regmap, CS530X_CLK_CFG_1, CS530X_SAMPLE_RATE_MASK, fs_val); @@ -781,8 +777,6 @@ static int cs530x_set_sysclk(struct snd_soc_component *component, int clk_id, freq); return -EINVAL; } - - cs530x->mclk_rate = freq; break; case CS530X_SYSCLK_SRC_PLL: break; diff --git a/sound/soc/codecs/cs530x.h b/sound/soc/codecs/cs530x.h index b325847036e9..5b47c1ae2a09 100644 --- a/sound/soc/codecs/cs530x.h +++ b/sound/soc/codecs/cs530x.h @@ -99,7 +99,7 @@ #define CS530X_TDM_EN_MASK BIT(2) #define CS530X_ASP_FMT_I2S 0 #define CS530X_ASP_FMT_LJ 1 -#define CS530X_ASP_FMT_DSP_A 0x6 +#define CS530X_ASP_FMT_DSP_A 6 /* TDM Slots */ #define CS530X_0_1_TDM_SLOT_MASK GENMASK(1, 0) @@ -207,11 +207,8 @@ struct cs530x_priv { struct regulator_bulk_data supplies[CS530X_NUM_SUPPLIES]; - unsigned int mclk_rate; - int tdm_width; int tdm_slots; - int fs; int adc_pairs_count; struct gpio_desc *reset_gpio; |
