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

Commit 81b002a3 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: Enable HID function for charging mode"

parents 4ce052c2 2a397b60
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -74,6 +74,7 @@
#include "f_uac1.c"
#endif
#include "f_ncm.c"
#include "f_charger.c"

MODULE_AUTHOR("Mike Lockwood");
MODULE_DESCRIPTION("Android Composite USB Driver");
@@ -1743,6 +1744,19 @@ static struct android_usb_function ccid_function = {
	.bind_config	= ccid_function_bind_config,
};

/* Charger */
static int charger_function_bind_config(struct android_usb_function *f,
						struct usb_configuration *c)
{
	return charger_bind_config(c);
}

static struct android_usb_function charger_function = {
	.name		= "charging",
	.bind_config	= charger_function_bind_config,
};


static int
mtp_function_init(struct android_usb_function *f,
		struct usb_composite_dev *cdev)
@@ -2641,6 +2655,7 @@ static struct android_usb_function *supported_functions[] = {
	&audio_source_function,
#endif
	&uasp_function,
	&charger_function,
	NULL
};

+165 −569

File changed.

Preview size limit exceeded, changes collapsed.