mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
parent
628f3dfe4c
commit
7f9472134a
2 changed files with 10 additions and 0 deletions
|
|
@ -15,6 +15,7 @@
|
|||
#include <linux/gpio.h>
|
||||
#include <linux/mfd/core.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/notifier.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_gpio.h>
|
||||
|
|
@ -357,6 +358,8 @@ int madera_dev_init(struct madera *madera)
|
|||
|
||||
dev_set_drvdata(madera->dev, madera);
|
||||
BLOCKING_INIT_NOTIFIER_HEAD(&madera->notifier);
|
||||
mutex_init(&madera->dapm_ptr_lock);
|
||||
|
||||
madera_set_micbias_info(madera);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue