Staging: vc04_services: Remove typedef VCHI_CONNECTION_API_T
Subsystems (2)
PATCH v2 1/1 Staging: vc04_services: Remove typedef VCHI_CONNECTION_API_T
Removes the typedef in order to make the code more readable.
---
Changes in v2:
-Fix the 80 column problem.
-Remove the code in comments.
drivers/staging/vc04_services/interface/vchi/vchi.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/staging/vc04_services/interface/vchi/vchi.h +3 -4
@@ -159,8 +159,9 @@ typedef struct service_info_tag {extern "C" {#endif -extern /*@observer@*/ VCHI_CONNECTION_T *vchi_create_connection (const struct opaque_vchi_connection_api * function_table, -const VCHI_MESSAGE_DRIVER_T * low_level); +extern /*@observer@*/ VCHI_CONNECTION_T *vchi_create_connection ( +const struct opaque_vchi_connection_api * function_table, +const VCHI_MESSAGE_DRIVER_T * low_level);// Routine used to initialise the vchi on both local + remote connections
@@ -342,8 +343,6 @@ extern int32_t vchi_bulk_queue_transmit( VCHI_SERVICE_HANDLE_T handle,// function prototypes for the different mid layers (the state info gives the different physical connections) extern const struct opaque_vchi_connection_api *single_get_func_table (void ); -//extern const struct opaque_vchi_connection_api *local_server_get_func_table( void ); -//extern const struct opaque_vchi_connection_api *local_client_get_func_table( void ); // declare all message drivers here const VCHI_MESSAGE_DRIVER_T *vchi_mphi_message_driver_func_table (void );
Signature · 1 line
2.7.4
Hi Meghana,
Quoted 7 lines · Meghana Madhyastha
Removes the typedef in order to make the code more readable.
Signed-off-by Meghana Madhyastha <[email protected]>---
Changes in v2:
-Fix the 80 column problem.
-Remove the code in comments.
Code in comments should be definitely dropped but please make a separate patch for it. You can
send this as a patchseries because it is related to the same file.
Quoted 10 lines
drivers/staging/vc04_services/interface/vchi/vchi.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)drivers/staging/vc04_services/interface/vchi/vchi.h +0
-0@@ -159,8 +159,9 @@ typedef struct service_info_tag {extern "C" {
drivers/staging/vc04_services/interface/vchi/vchi.h typedef struct service_info_tag { · line 167
Quoted 10 lines
drivers/staging/vc04_services/interface/vchi/vchi.h +3
-2#endif -extern /*@observer@*/ VCHI_CONNECTION_T *vchi_create_connection (const struct opaque_vchi_connection_api * function_table, -const VCHI_MESSAGE_DRIVER_T * low_level); +extern /*@observer@*/ VCHI_CONNECTION_T *vchi_create_connection ( +const struct opaque_vchi_connection_api * function_table, +const VCHI_MESSAGE_DRIVER_T * low_level);// Routine used to initialise the vchi on both local + remote connections
Here its worth replacing c++ style comments // with c style comments /* */, but of course in a separate patch.
drivers/staging/vc04_services/interface/vchi/vchi.h extern int32_t vchi_bulk_queue_transmit( VCHI_SERVICE_HANDLE_T handle, · line 348
Quoted 9 lines
drivers/staging/vc04_services/interface/vchi/vchi.h +0
-2@@ -342,8 +343,6 @@ extern int32_t vchi_bulk_queue_transmit( VCHI_SERVICE_HANDLE_T handle,// function prototypes for the different mid layers (the state info gives the different physical connections) extern const struct opaque_vchi_connection_api *single_get_func_table (void ); -//extern const struct opaque_vchi_connection_api *local_server_get_func_table( void ); -//extern const struct opaque_vchi_connection_api *local_client_get_func_table( void ); // declare all message drivers here const VCHI_MESSAGE_DRIVER_T *vchi_mphi_message_driver_func_table (void );
thanks,
Daniel.