staging: vc04_services: Fix space issues
authorStefan Wahren <stefan.wahren@i2se.com>
Sun, 8 Jan 2017 18:15:18 +0000 (18:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jan 2017 16:42:46 +0000 (17:42 +0100)
This fixes the space coding styles issues complained by checkpatch.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_kern_lib.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c

index 971c26c77fac88b79057c28fde10f9cb8281fcaa..e6241fb5cfa6953155aff49c17a919b398173f78 100644 (file)
@@ -203,11 +203,11 @@ vchiq_platform_init_state(VCHIQ_STATE_T *state)
 {
        VCHIQ_STATUS_T status = VCHIQ_SUCCESS;
        state->platform_state = kzalloc(sizeof(VCHIQ_2835_ARM_STATE_T), GFP_KERNEL);
-       ((VCHIQ_2835_ARM_STATE_T*)state->platform_state)->inited = 1;
-       status = vchiq_arm_init_state(state, &((VCHIQ_2835_ARM_STATE_T*)state->platform_state)->arm_state);
-       if(status != VCHIQ_SUCCESS)
+       ((VCHIQ_2835_ARM_STATE_T *)state->platform_state)->inited = 1;
+       status = vchiq_arm_init_state(state, &((VCHIQ_2835_ARM_STATE_T *)state->platform_state)->arm_state);
+       if (status != VCHIQ_SUCCESS)
        {
-               ((VCHIQ_2835_ARM_STATE_T*)state->platform_state)->inited = 0;
+               ((VCHIQ_2835_ARM_STATE_T *)state->platform_state)->inited = 0;
        }
        return status;
 }
@@ -215,11 +215,11 @@ vchiq_platform_init_state(VCHIQ_STATE_T *state)
 VCHIQ_ARM_STATE_T*
 vchiq_platform_get_arm_state(VCHIQ_STATE_T *state)
 {
-       if(!((VCHIQ_2835_ARM_STATE_T*)state->platform_state)->inited)
+       if (!((VCHIQ_2835_ARM_STATE_T *)state->platform_state)->inited)
        {
                BUG();
        }
-       return &((VCHIQ_2835_ARM_STATE_T*)state->platform_state)->arm_state;
+       return &((VCHIQ_2835_ARM_STATE_T *)state->platform_state)->arm_state;
 }
 
 void
@@ -315,7 +315,7 @@ vchiq_platform_resumed(VCHIQ_STATE_T *state)
 }
 
 int
-vchiq_platform_videocore_wanted(VCHIQ_STATE_Tstate)
+vchiq_platform_videocore_wanted(VCHIQ_STATE_T *state)
 {
        return 1; // autosuspend not supported - videocore always wanted
 }
index bfa47d0233681c464e241bfac6029fe1e9418741..0525211bcd65db4b04958f7974072209c1938bbb 100644 (file)
@@ -1996,7 +1996,7 @@ block_resume(VCHIQ_ARM_STATE_T *arm_state)
                                &arm_state->blocked_blocker, timeout_val)
                                        <= 0) {
                        vchiq_log_error(vchiq_susp_log_level, "%s wait for "
-                               "previously blocked clients failed" , __func__);
+                               "previously blocked clients failed", __func__);
                        status = VCHIQ_ERROR;
                        write_lock_bh(&arm_state->susp_res_lock);
                        goto out;
@@ -2012,7 +2012,7 @@ block_resume(VCHIQ_ARM_STATE_T *arm_state)
                if (resume_count > 1) {
                        status = VCHIQ_ERROR;
                        vchiq_log_error(vchiq_susp_log_level, "%s waited too "
-                               "many times for resume" , __func__);
+                               "many times for resume", __func__);
                        goto out;
                }
                write_unlock_bh(&arm_state->susp_res_lock);
index 53c975ce3f6fda28356775ac02e4dd7684c5e2cb..4317c06943a63d8e7386d81b8ec9b6b298475969 100644 (file)
@@ -81,17 +81,17 @@ VCHIQ_STATUS_T vchiq_initialise(VCHIQ_INSTANCE_T *instance_out)
 
        /* VideoCore may not be ready due to boot up timing.
           It may never be ready if kernel and firmware are mismatched, so don't block forever. */
-       for (i=0; i<VCHIQ_INIT_RETRIES; i++) {
+       for (i = 0; i < VCHIQ_INIT_RETRIES; i++) {
                state = vchiq_get_state();
                if (state)
                        break;
                udelay(500);
        }
-       if (i==VCHIQ_INIT_RETRIES) {
+       if (i == VCHIQ_INIT_RETRIES) {
                vchiq_log_error(vchiq_core_log_level,
                        "%s: videocore not initialized\n", __func__);
                goto failed;
-       } else if (i>0) {
+       } else if (i > 0) {
                vchiq_log_warning(vchiq_core_log_level,
                        "%s: videocore initialized after %d retries\n", __func__, i);
        }
index 388255f0dec995ca068bcdd6215587a9332dd124..a6b2ae0c9bea8263906f0fcc0159252236293697 100644 (file)
@@ -739,16 +739,16 @@ int32_t vchi_service_set_option(const VCHI_SERVICE_HANDLE_T handle,
 }
 EXPORT_SYMBOL(vchi_service_set_option);
 
-int32_t vchi_get_peer_version( const VCHI_SERVICE_HANDLE_T handle, short *peer_version )
+int32_t vchi_get_peer_version(const VCHI_SERVICE_HANDLE_T handle, short *peer_version)
 {
        int32_t ret = -1;
        SHIM_SERVICE_T *service = (SHIM_SERVICE_T *)handle;
-       if(service)
+       if (service)
        {
                VCHIQ_STATUS_T status;
 
                status = vchiq_get_peer_version(service->handle, peer_version);
-               ret = vchiq_status_to_vchi( status );
+               ret = vchiq_status_to_vchi(status);
        }
        return ret;
 }