From: Greg Kroah-Hartman Date: Sun, 28 Feb 2016 22:13:27 +0000 (-0800) Subject: greybus: manifest: reserve the Bridged PHY class X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d6fefbe19327f4137360d7ab8af78f1d4d9b909e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git greybus: manifest: reserve the Bridged PHY class This reserves the bridged phy class number to be used later on. Signed-off-by: Greg Kroah-Hartman Reviewed-by: Viresh Kumar Reviewed-by: Johan Hovold --- diff --git a/drivers/staging/greybus/gpbridge.c b/drivers/staging/greybus/gpbridge.c index c82ded14846d..9be936cb422f 100644 --- a/drivers/staging/greybus/gpbridge.c +++ b/drivers/staging/greybus/gpbridge.c @@ -81,4 +81,16 @@ static void __exit gpbridge_exit(void) } module_exit(gpbridge_exit); +/* + * One large list of all classes we support in the gpbridge.ko module. + * + * Due to limitations in older kernels, the different phy .c files can not + * contain their own MODULE_DEVICE_TABLE(), so put them all here for now. + */ +static const struct greybus_bundle_id bridged_phy_id_table[] = { + { GREYBUS_DEVICE_CLASS(GREYBUS_CLASS_BRIDGED_PHY) }, + { }, +}; +MODULE_DEVICE_TABLE(greybus, bridged_phy_id_table); + MODULE_LICENSE("GPL v2"); diff --git a/drivers/staging/greybus/greybus_manifest.h b/drivers/staging/greybus/greybus_manifest.h index 76649a649554..b9504c723a75 100644 --- a/drivers/staging/greybus/greybus_manifest.h +++ b/drivers/staging/greybus/greybus_manifest.h @@ -61,7 +61,7 @@ enum greybus_class_type { GREYBUS_CLASS_SDIO = 0x07, GREYBUS_CLASS_POWER_SUPPLY = 0x08, GREYBUS_CLASS_PWM = 0x09, - /* 0x0a is unused */ + GREYBUS_CLASS_BRIDGED_PHY = 0x0a, GREYBUS_CLASS_SPI = 0x0b, GREYBUS_CLASS_DISPLAY = 0x0c, GREYBUS_CLASS_CAMERA = 0x0d,