Staging: vc04_services: Code cleanup
Subsystems (2)
cover Staging: vc04_services: Code cleanup
The patches in this patchset fix some warnings
in the vc04_services driver.
Meghana Madhyastha (3):
Staging: vc04_services: Remove 80 columns error
Staging: vc04_services: Replace "foo * bar" with "foo *bar"
Staging: vc04_services: Remove commented lines
drivers/staging/vc04_services/interface/vchi/vchi.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
Signature · 1 line
2.7.4
PATCH 2/3 Staging: vc04_services: Replace "foo * bar" with "foo *bar"
Preferred coding style.
Found by checkpath.pl
--- drivers/staging/vc04_services/interface/vchi/vchi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vc04_services/interface/vchi/vchi.h +1 -1
@@ -160,7 +160,7 @@ extern "C" {#endif extern /*@observer@*/ VCHI_CONNECTION_T *vchi_create_connection ( -const struct opaque_vchi_connection_api_t * function_table, +const struct opaque_vchi_connection_api_t *function_table,const VCHI_MESSAGE_DRIVER_T * low_level);
Signature · 1 line
2.7.4
PATCH 3/3 Staging: vc04_services: Remove commented lines
In reply to Meghana MadhyasthaRemove the commented extern declarations
as they are not used.
--- drivers/staging/vc04_services/interface/vchi/vchi.h | 2 -- 1 file changed, 2 deletions(-)
drivers/staging/vc04_services/interface/vchi/vchi.h +0 -2
@@ -343,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_t *single_get_func_table (void ); -//extern const struct opaque_vchi_connection_api_t *local_server_get_func_table( void ); -//extern const struct opaque_vchi_connection_api_t *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
PATCH 1/3 Staging: vc04_services: Remove 80 columns error
In reply to Meghana MadhyasthaSplit the line into multiple lines to enhance readability and to adhere to standard codingn style.
--- drivers/staging/vc04_services/interface/vchi/vchi.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/staging/vc04_services/interface/vchi/vchi.h +3 -2
@@ -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_t * function_table, -const VCHI_MESSAGE_DRIVER_T * low_level); +extern /*@observer@*/ VCHI_CONNECTION_T *vchi_create_connection ( +const struct opaque_vchi_connection_api_t * function_table, +const VCHI_MESSAGE_DRIVER_T * low_level);// Routine used to initialise the vchi on both local + remote connections
Signature · 1 line
2.7.4
Greg KH
maintainerRe: [PATCH 2/3] Staging: vc04_services: Replace "foo * bar" with "foo *bar"
In reply to Meghana MadhyasthaQuoted 7 lines · Meghana Madhyastha
Preferred coding style.
Found by checkpath.plSigned-off-by Meghana Madhyastha <[email protected]>--- drivers/staging/vc04_services/interface/vchi/vchi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Patch does not apply to my tree at all :(
Greg KH
maintainerRe: [PATCH 3/3] Staging: vc04_services: Remove commented lines
In reply to Meghana MadhyasthaQuoted 7 lines · Meghana Madhyastha
Remove the commented extern declarations
as they are not used.Signed-off-by Meghana Madhyastha <[email protected]>--- drivers/staging/vc04_services/interface/vchi/vchi.h | 2 -- 1 file changed, 2 deletions(-)
This patch also does not apply to my tree :(