|
@@ -24,7 +24,6 @@
|
|
#include <linux/mfd/max14577-private.h>
|
|
#include <linux/mfd/max14577-private.h>
|
|
#include <linux/extcon.h>
|
|
#include <linux/extcon.h>
|
|
|
|
|
|
-#define DEV_NAME "max14577-muic"
|
|
|
|
#define DELAY_MS_DEFAULT 17000 /* unit: millisecond */
|
|
#define DELAY_MS_DEFAULT 17000 /* unit: millisecond */
|
|
|
|
|
|
enum max14577_muic_adc_debounce_time {
|
|
enum max14577_muic_adc_debounce_time {
|
|
@@ -673,7 +672,8 @@ static int max14577_muic_probe(struct platform_device *pdev)
|
|
dev_err(&pdev->dev, "failed to allocate memory for extcon\n");
|
|
dev_err(&pdev->dev, "failed to allocate memory for extcon\n");
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
}
|
|
}
|
|
- info->edev->name = DEV_NAME;
|
|
|
|
|
|
+
|
|
|
|
+ info->edev->name = dev_name(&pdev->dev);
|
|
info->edev->supported_cable = max14577_extcon_cable;
|
|
info->edev->supported_cable = max14577_extcon_cable;
|
|
ret = extcon_dev_register(info->edev);
|
|
ret = extcon_dev_register(info->edev);
|
|
if (ret) {
|
|
if (ret) {
|
|
@@ -737,7 +737,7 @@ static int max14577_muic_remove(struct platform_device *pdev)
|
|
|
|
|
|
static struct platform_driver max14577_muic_driver = {
|
|
static struct platform_driver max14577_muic_driver = {
|
|
.driver = {
|
|
.driver = {
|
|
- .name = DEV_NAME,
|
|
|
|
|
|
+ .name = "max14577-muic",
|
|
.owner = THIS_MODULE,
|
|
.owner = THIS_MODULE,
|
|
},
|
|
},
|
|
.probe = max14577_muic_probe,
|
|
.probe = max14577_muic_probe,
|