Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Vitaly Rodionov and committed by
Mark Brown
f97ebfda 1e0722a7

+1 -10
-6
sound/soc/codecs/cs530x.c
··· 21 21 22 22 #include "cs530x.h" 23 23 24 - #define CS530X_MAX_ADC_CH 8 25 - #define CS530X_MIN_ADC_CH 2 26 - 27 24 static const char *cs530x_supply_names[CS530X_NUM_SUPPLIES] = { 28 25 "vdd-a", 29 26 "vdd-io", ··· 514 517 return -EINVAL; 515 518 } 516 519 517 - cs530x->fs = fs; 518 520 regmap_update_bits(regmap, CS530X_CLK_CFG_1, 519 521 CS530X_SAMPLE_RATE_MASK, fs_val); 520 522 ··· 777 781 freq); 778 782 return -EINVAL; 779 783 } 780 - 781 - cs530x->mclk_rate = freq; 782 784 break; 783 785 case CS530X_SYSCLK_SRC_PLL: 784 786 break;
+1 -4
sound/soc/codecs/cs530x.h
··· 99 99 #define CS530X_TDM_EN_MASK BIT(2) 100 100 #define CS530X_ASP_FMT_I2S 0 101 101 #define CS530X_ASP_FMT_LJ 1 102 - #define CS530X_ASP_FMT_DSP_A 0x6 102 + #define CS530X_ASP_FMT_DSP_A 6 103 103 104 104 /* TDM Slots */ 105 105 #define CS530X_0_1_TDM_SLOT_MASK GENMASK(1, 0) ··· 207 207 208 208 struct regulator_bulk_data supplies[CS530X_NUM_SUPPLIES]; 209 209 210 - unsigned int mclk_rate; 211 - 212 210 int tdm_width; 213 211 int tdm_slots; 214 - int fs; 215 212 int adc_pairs_count; 216 213 217 214 struct gpio_desc *reset_gpio;