summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2015-05-05 21:42:01 +0800
committerMark Brown <broonie@kernel.org>2015-05-06 18:49:20 +0100
commitac4fc3eeb79e06499779db99937522526e863ab6 (patch)
tree82052a8ac946b62e29d8a7234e425993c6e5d0e1 /include/sound
parent786aa09b27be7916c1281d7a29a394bd1ae7a4dc (diff)
downloadop-kernel-dev-ac4fc3eeb79e06499779db99937522526e863ab6.zip
op-kernel-dev-ac4fc3eeb79e06499779db99937522526e863ab6.tar.gz
ASoC: rt5645: remove unused field in pdata
We can know if dmic is used by reading the value of dmic1_data_pin and dmic2_data_pin. Also IRQ must be used if codec JD or button detection function is used. So, dmic_en and en_jd_func can be remove from platform data. Signed-off-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/rt5645.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/sound/rt5645.h b/include/sound/rt5645.h
index 120d961..652cb9e 100644
--- a/include/sound/rt5645.h
+++ b/include/sound/rt5645.h
@@ -15,7 +15,6 @@ struct rt5645_platform_data {
/* IN2 can optionally be differential */
bool in2_diff;
- bool dmic_en;
unsigned int dmic1_data_pin;
/* 0 = IN2N; 1 = GPIO5; 2 = GPIO11 */
unsigned int dmic2_data_pin;
@@ -24,8 +23,6 @@ struct rt5645_platform_data {
unsigned int hp_det_gpio;
bool gpio_hp_det_active_high;
- /* true if codec's jd function is used */
- bool en_jd_func;
unsigned int jd_mode;
};
OpenPOWER on IntegriCloud