Skip to contentSkip to conversation

Staging: vc04_services: Code cleanup

PATCH Superseded Meghana Madhyastha 2 participants 6 messages Sep 12, 2017

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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
#2 lore raw

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
index 6fea154..7281a01 100644
@@ -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
#4 lore raw

PATCH 3/3 Staging: vc04_services: Remove commented lines

In reply to Meghana Madhyastha

Remove 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
index 7281a01..c1c9073 100644
@@ -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
#1 lore raw

PATCH 1/3 Staging: vc04_services: Remove 80 columns error

In reply to Meghana Madhyastha

Split 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
index 23eb7a9..6fea154 100644
@@ -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
maintainer
#3 lore raw

Re: [PATCH 2/3] Staging: vc04_services: Replace "foo * bar" with "foo *bar"

In reply to Meghana Madhyastha
Quoted 7 lines · Meghana Madhyastha

Preferred coding style.
Found by checkpath.pl

---
 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 :(

maintainer
#5 lore raw

Re: [PATCH 3/3] Staging: vc04_services: Remove commented lines

In reply to Meghana Madhyastha
Quoted 7 lines · Meghana Madhyastha

Remove the commented extern declarations
as they are not used.

---
 drivers/staging/vc04_services/interface/vchi/vchi.h | 2 --
 1 file changed, 2 deletions(-)

This patch also does not apply to my tree :(