mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
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>
This commit is contained in:
parent
1e0722a77b
commit
f97ebfda8d
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user