summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2016-05-10 08:50:13 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2016-05-14 19:18:24 +0200
commitdc0754088e53e42fee1f880bc0c2002f624fe26f (patch)
treee12712fac6a473b0ab054ac01a16e8bd7aa3aca9 /drivers
parentb9662266aa2694936836bace57a90f908a0b7e24 (diff)
downloadop-kernel-dev-dc0754088e53e42fee1f880bc0c2002f624fe26f.zip
op-kernel-dev-dc0754088e53e42fee1f880bc0c2002f624fe26f.tar.gz
greybus: Remove bridge PHY protocol specific classes
These protocols are managed under the bridged PHY class and doesn't need protocol specific classes anymore. Remove their entries from gb_gpbridge_id_table array and remove the now unused macro's and mark their values as unused. Tested on EVT 1.5 with generic-test module. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Sandeep Patil <sspatil@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/greybus/gpbridge.c7
-rw-r--r--drivers/staging/greybus/greybus_manifest.h14
2 files changed, 7 insertions, 14 deletions
diff --git a/drivers/staging/greybus/gpbridge.c b/drivers/staging/greybus/gpbridge.c
index 67f18ac..f082658 100644
--- a/drivers/staging/greybus/gpbridge.c
+++ b/drivers/staging/greybus/gpbridge.c
@@ -283,13 +283,6 @@ static int gb_gpbridge_probe(struct gb_bundle *bundle,
static const struct greybus_bundle_id gb_gpbridge_id_table[] = {
{ GREYBUS_DEVICE_CLASS(GREYBUS_CLASS_BRIDGED_PHY) },
- { GREYBUS_DEVICE_CLASS(GREYBUS_CLASS_GPIO) },
- { GREYBUS_DEVICE_CLASS(GREYBUS_CLASS_I2C) },
- { GREYBUS_DEVICE_CLASS(GREYBUS_CLASS_PWM) },
- { GREYBUS_DEVICE_CLASS(GREYBUS_CLASS_SDIO) },
- { GREYBUS_DEVICE_CLASS(GREYBUS_CLASS_SPI) },
- { GREYBUS_DEVICE_CLASS(GREYBUS_CLASS_UART) },
- { GREYBUS_DEVICE_CLASS(GREYBUS_CLASS_USB) },
{ },
};
MODULE_DEVICE_TABLE(greybus, gb_gpbridge_id_table);
diff --git a/drivers/staging/greybus/greybus_manifest.h b/drivers/staging/greybus/greybus_manifest.h
index 5d00f7d..4f70190 100644
--- a/drivers/staging/greybus/greybus_manifest.h
+++ b/drivers/staging/greybus/greybus_manifest.h
@@ -55,16 +55,16 @@ enum greybus_protocol {
enum greybus_class_type {
GREYBUS_CLASS_CONTROL = 0x00,
/* 0x01 is unused */
- GREYBUS_CLASS_GPIO = 0x02,
- GREYBUS_CLASS_I2C = 0x03,
- GREYBUS_CLASS_UART = 0x04,
+ /* 0x02 is unused */
+ /* 0x03 is unused */
+ /* 0x04 is unused */
GREYBUS_CLASS_HID = 0x05,
- GREYBUS_CLASS_USB = 0x06,
- GREYBUS_CLASS_SDIO = 0x07,
+ /* 0x06 is unused */
+ /* 0x07 is unused */
GREYBUS_CLASS_POWER_SUPPLY = 0x08,
- GREYBUS_CLASS_PWM = 0x09,
+ /* 0x09 is unused */
GREYBUS_CLASS_BRIDGED_PHY = 0x0a,
- GREYBUS_CLASS_SPI = 0x0b,
+ /* 0x0b is unused */
GREYBUS_CLASS_DISPLAY = 0x0c,
GREYBUS_CLASS_CAMERA = 0x0d,
GREYBUS_CLASS_SENSOR = 0x0e,
OpenPOWER on IntegriCloud