soc: qcom: fsa4480: Use mmhardware
Change-Id: I421821216acc101e81d1d38522044bf07116b24a
This commit is contained in:
parent
1a57779fa9
commit
bc43b97718
@ -11,6 +11,7 @@
|
||||
#include <linux/usb/ucsi_glink.h>
|
||||
#include <linux/soc/qcom/fsa4480-i2c.h>
|
||||
#include <linux/qti-regmap-debugfs.h>
|
||||
#include <linux/mmhardware_sysfs.h>
|
||||
|
||||
#define FSA4480_I2C_NAME "fsa4480-driver"
|
||||
|
||||
@ -368,6 +369,10 @@ static int fsa4480_probe(struct i2c_client *i2c,
|
||||
mutex_init(&fsa_priv->notification_lock);
|
||||
i2c_set_clientdata(i2c, fsa_priv);
|
||||
|
||||
#if IS_ENABLED(CONFIG_MMHARDWARE_DETECTION)
|
||||
register_kobj_under_mmsysfs(MM_HW_AS, "audioswitch");
|
||||
#endif
|
||||
|
||||
INIT_WORK(&fsa_priv->usbc_analog_work,
|
||||
fsa4480_usbc_analog_work_fn);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user