diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-05-30 11:31:53 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-05-31 22:02:58 -0700 |
commit | 64060fe95458f22bac7327b2ee8dc5ce9e488d44 (patch) | |
tree | b17a641e46226ed8a4635963964ccae6f609938e /drivers/staging/greybus/greybus_protocols.h | |
parent | 5e569115e9b9d4af631589b9d9cc5227a660b008 (diff) | |
download | op-kernel-dev-64060fe95458f22bac7327b2ee8dc5ce9e488d44.zip op-kernel-dev-64060fe95458f22bac7327b2ee8dc5ce9e488d44.tar.gz |
greybus: gbphy: Remove protocol specific version handling
We should be using the generic version handling at bundle level, instead
of at protocol level for bridged PHY devices as well.
The bundle version handling is already in place, though it is *not* used
today as we haven't bumped the version of control protocol yet.
Remove protocol specific handling for bridged PHY devices.
Tested on EVT 1.5 with gpbridge-test module. No nuttx changes are
required with this.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/greybus_protocols.h')
-rw-r--r-- | drivers/staging/greybus/greybus_protocols.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h index 6550f17..82075c7 100644 --- a/drivers/staging/greybus/greybus_protocols.h +++ b/drivers/staging/greybus/greybus_protocols.h @@ -97,7 +97,6 @@ struct gb_operation_msg_hdr { /* Generic request types */ #define GB_REQUEST_TYPE_PING 0x00 -#define GB_REQUEST_TYPE_PROTOCOL_VERSION 0x01 #define GB_REQUEST_TYPE_INVALID 0x7f struct gb_protocol_version_request { @@ -614,10 +613,6 @@ struct gb_hid_input_report_request { /* I2C */ -/* Version of the Greybus i2c protocol we support */ -#define GB_I2C_VERSION_MAJOR 0x00 -#define GB_I2C_VERSION_MINOR 0x01 - /* Greybus i2c request types */ #define GB_I2C_TYPE_FUNCTIONALITY 0x02 #define GB_I2C_TYPE_TRANSFER 0x05 @@ -654,10 +649,6 @@ struct gb_i2c_transfer_response { /* GPIO */ -/* Version of the Greybus GPIO protocol we support */ -#define GB_GPIO_VERSION_MAJOR 0x00 -#define GB_GPIO_VERSION_MINOR 0x01 - /* Greybus GPIO request types */ #define GB_GPIO_TYPE_LINE_COUNT 0x02 #define GB_GPIO_TYPE_ACTIVATE 0x03 @@ -757,10 +748,6 @@ struct gb_gpio_irq_event_request { /* PWM */ -/* Version of the Greybus PWM protocol we support */ -#define GB_PWM_VERSION_MAJOR 0x00 -#define GB_PWM_VERSION_MINOR 0x01 - /* Greybus PWM operation types */ #define GB_PWM_TYPE_PWM_COUNT 0x02 #define GB_PWM_TYPE_ACTIVATE 0x03 @@ -804,10 +791,6 @@ struct gb_pwm_disable_request { /* SPI */ -/* Version of the Greybus spi protocol we support */ -#define GB_SPI_VERSION_MAJOR 0x00 -#define GB_SPI_VERSION_MINOR 0x01 - /* Should match up with modes in linux/spi/spi.h */ #define GB_SPI_MODE_CPHA 0x01 /* clock phase */ #define GB_SPI_MODE_CPOL 0x02 /* clock polarity */ @@ -1246,10 +1229,6 @@ struct gb_raw_send_request { /* UART */ -/* Version of the Greybus UART protocol we support */ -#define GB_UART_VERSION_MAJOR 0x00 -#define GB_UART_VERSION_MINOR 0x01 - /* Greybus UART operation types */ #define GB_UART_TYPE_SEND_DATA 0x02 #define GB_UART_TYPE_RECEIVE_DATA 0x03 /* Unsolicited data */ @@ -1356,10 +1335,6 @@ struct gb_loopback_transfer_response { } __packed; /* SDIO */ -/* Version of the Greybus sdio protocol we support */ -#define GB_SDIO_VERSION_MAJOR 0x00 -#define GB_SDIO_VERSION_MINOR 0x01 - /* Greybus SDIO operation types */ #define GB_SDIO_TYPE_GET_CAPABILITIES 0x02 #define GB_SDIO_TYPE_SET_IOS 0x03 |