From 852859ab8186e7a492fdec5db5ef219bf625c21a Mon Sep 17 00:00:00 2001 From: Vaibhav Agarwal Date: Wed, 4 May 2016 16:29:21 +0530 Subject: greybus: audio: Remove redundant lock protection & is_connected field Each module maintains connected status & a lock to protect it. Using codec->lock we can safely serialize ASoC specific callbacks (in response to mixer_ctl update or dai_ops) and gb module disconnect. Thus is_connected field can be removed. Signed-off-by: Vaibhav Agarwal Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/audio_codec.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/staging/greybus/audio_codec.h') diff --git a/drivers/staging/greybus/audio_codec.h b/drivers/staging/greybus/audio_codec.h index 6182b20c5a27..5a19467c1623 100644 --- a/drivers/staging/greybus/audio_codec.h +++ b/drivers/staging/greybus/audio_codec.h @@ -172,8 +172,6 @@ struct gbaudio_module_info { struct snd_soc_jack button_jack; /* used by codec_ops */ - struct mutex lock; - int is_connected; int ctrlstate[2]; /* PB/CAP */ /* connection info */ -- cgit