Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 425d075c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: phy: dual-role: update sysfs attrs when changed" into msm-4.9

parents 91a0c548 757ecb71
Loading
Loading
Loading
Loading
+12 −9
Original line number Diff line number Diff line
@@ -70,15 +70,7 @@ static char *kstrdupcase(const char *str, gfp_t gfp, bool to_upper)
	return ret;
}

static void dual_role_changed_work(struct work_struct *work)
{
	struct dual_role_phy_instance *dual_role =
	    container_of(work, struct dual_role_phy_instance,
			 changed_work);

	dev_dbg(&dual_role->dev, "%s\n", __func__);
	kobject_uevent(&dual_role->dev.kobj, KOBJ_CHANGE);
}
static void dual_role_changed_work(struct work_struct *work);

void dual_role_instance_changed(struct dual_role_phy_instance *dual_role)
{
@@ -505,6 +497,17 @@ int dual_role_uevent(struct device *dev, struct kobj_uevent_env *env)
	return ret;
}

static void dual_role_changed_work(struct work_struct *work)
{
	struct dual_role_phy_instance *dual_role =
	    container_of(work, struct dual_role_phy_instance,
			 changed_work);

	dev_dbg(&dual_role->dev, "%s\n", __func__);
	sysfs_update_group(&dual_role->dev.kobj, &dual_role_attr_group);
	kobject_uevent(&dual_role->dev.kobj, KOBJ_CHANGE);
}

/******************* Module Init ***********************************/

static int __init dual_role_class_init(void)