diff options
author | Luca Ellero <luca.ellero@brickedbrain.com> | 2014-07-10 11:03:58 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-10 15:10:05 -0700 |
commit | 4a376719cec0709eba0ed819eba2df0ce88ea113 (patch) | |
tree | 8dbe44a5e452c9a52a83e84a915f7677927d3eb4 /drivers/staging/ced1401 | |
parent | 3fe68ea0f6ca0411a634658eb18e3ce322b4dae1 (diff) | |
download | blackbird-op-linux-4a376719cec0709eba0ed819eba2df0ce88ea113.tar.gz blackbird-op-linux-4a376719cec0709eba0ed819eba2df0ce88ea113.zip |
staging: ced1401: fix ced_test_event()
Rename camel case arguments and locals in function ced_test_event()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ced1401')
-rw-r--r-- | drivers/staging/ced1401/ced_ioc.c | 20 | ||||
-rw-r--r-- | drivers/staging/ced1401/usb1401.h | 2 |
2 files changed, 12 insertions, 10 deletions
diff --git a/drivers/staging/ced1401/ced_ioc.c b/drivers/staging/ced1401/ced_ioc.c index 707f8fa68ce1..47ef5ddcb4ce 100644 --- a/drivers/staging/ced1401/ced_ioc.c +++ b/drivers/staging/ced1401/ced_ioc.c @@ -916,21 +916,23 @@ int ced_wait_event(struct ced_data *ced, int area, int time_out) ** number of times a block completed since the last call, or 0 if none or a ** negative error. ****************************************************************************/ -int ced_test_event(struct ced_data *ced, int nArea) +int ced_test_event(struct ced_data *ced, int area) { - int iReturn; - if ((unsigned)nArea >= MAX_TRANSAREAS) - iReturn = U14ERR_BADAREA; + int ret; + if ((unsigned)area >= MAX_TRANSAREAS) + ret = U14ERR_BADAREA; else { - struct transarea *pTA = &ced->trans_def[nArea]; - mutex_lock(&ced->io_mutex); /* make sure we have no competitor */ + struct transarea *ta = &ced->trans_def[area]; + + /* make sure we have no competitor */ + mutex_lock(&ced->io_mutex); spin_lock_irq(&ced->staged_lock); - iReturn = pTA->wake_up; /* get wakeup count since last call */ - pTA->wake_up = 0; /* clear the count */ + ret = ta->wake_up; /* get wakeup count since last call */ + ta->wake_up = 0; /* clear the count */ spin_unlock_irq(&ced->staged_lock); mutex_unlock(&ced->io_mutex); } - return iReturn; + return ret; } /**************************************************************************** diff --git a/drivers/staging/ced1401/usb1401.h b/drivers/staging/ced1401/usb1401.h index ac4062bde410..30dbe5bf9c8a 100644 --- a/drivers/staging/ced1401/usb1401.h +++ b/drivers/staging/ced1401/usb1401.h @@ -253,6 +253,6 @@ extern int ced_dbg_stop_loop(struct ced_data *ced); extern int ced_set_circular(struct ced_data *ced, struct transfer_area_desc __user *pTD); extern int ced_get_circ_block(struct ced_data *ced, TCIRCBLOCK __user *pCB); extern int ced_free_circ_block(struct ced_data *ced, TCIRCBLOCK __user *pCB); -extern int ced_test_event(struct ced_data *ced, int nArea); extern int ced_wait_event(struct ced_data *ced, int area, int time_out); +extern int ced_test_event(struct ced_data *ced, int area); #endif |