mfd: madera: Add shared data for accessory detection
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Mon, 12 Nov 2018 15:28:37 +0000 (15:28 +0000)
committerLee Jones <lee.jones@linaro.org>
Thu, 3 Jan 2019 08:32:42 +0000 (08:32 +0000)
commit7f9472134a5af31bad191f074a5d416146da26f7
tree0679bd7a187a97ca78c23a80e5f9895f8eac9f3e
parent628f3dfe4c7b35bbe63ec194ca6da857b00b0083
mfd: madera: Add shared data for accessory detection

Add variables to struct madera that will be shared by the
extcon and audio codec drivers to synchronize output state
during accessory detection. Also add a mutex to protect
the DAPM pointer.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/madera-core.c
include/linux/mfd/madera/core.h