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

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

Merge "usb: gadget: change the minor number for android functions"

parents ef1dd1e0 b77c0349
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2844,7 +2844,9 @@ static int android_init_functions(struct android_usb_function **functions,
	struct device_attribute **attrs;
	struct device_attribute *attr;
	int err = 0;
	int index = 1; /* index 0 is for android0 device */
	int index = 2; /* index 0 is for android0 device
			* index 1 is for android1 device
			*/

	for (; (f = *functions++); index++) {
		f->dev_name = kasprintf(GFP_KERNEL, "f_%s", f->name);