aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/tidspbridge/pmgr/cod.c
diff options
context:
space:
mode:
authorRene Sapiens <rene.sapiens@ti.com>2010-07-09 22:23:57 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-22 13:45:34 -0400
commit95870a88ec83be6f10854c9da3bbadf27f3c07c3 (patch)
tree44ff15daf055a8600a31a9516974a61ae38432f9 /drivers/staging/tidspbridge/pmgr/cod.c
parente68906924d742dfb33564d7eb4ea7db0b4e65ae4 (diff)
staging: ti dspbridge: Rename words with camel case.
The intention of this patch is to rename the remaining variables with camel case. Variables will be renamed avoiding camel case and Hungarian notation. The words to be renamed in this patch are: ======================================== hStrm to stream_obj iMode to io_mode irqMask to irq_mask lOffset to offset memPtr to mem_ptr moduleId to module_id msgCallback to msg_callback msgList to msg_list nArgc to num_argc nEntryStart to entry_start nMemSpace to mem_space nStatus to node_status nStrms to strms numLibs to num_libs numLockedEntries to num_locked_entries pageSize to page_sz ======================================== Signed-off-by: Rene Sapiens <rene.sapiens@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/tidspbridge/pmgr/cod.c')
-rw-r--r--drivers/staging/tidspbridge/pmgr/cod.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/tidspbridge/pmgr/cod.c b/drivers/staging/tidspbridge/pmgr/cod.c
index a9b04912629..768203535d6 100644
--- a/drivers/staging/tidspbridge/pmgr/cod.c
+++ b/drivers/staging/tidspbridge/pmgr/cod.c
@@ -155,7 +155,7 @@ static s32 cod_f_read(void __user *pbuffer, s32 size, s32 count,
155 return -EINVAL; 155 return -EINVAL;
156} 156}
157 157
158static s32 cod_f_seek(struct file *filp, s32 lOffset, s32 origin) 158static s32 cod_f_seek(struct file *filp, s32 offset, s32 origin)
159{ 159{
160 loff_t dw_cur_pos; 160 loff_t dw_cur_pos;
161 161
@@ -164,7 +164,7 @@ static s32 cod_f_seek(struct file *filp, s32 lOffset, s32 origin)
164 return -EFAULT; 164 return -EFAULT;
165 165
166 /* based on the origin flag, move the internal pointer */ 166 /* based on the origin flag, move the internal pointer */
167 dw_cur_pos = filp->f_op->llseek(filp, lOffset, origin); 167 dw_cur_pos = filp->f_op->llseek(filp, offset, origin);
168 168
169 if ((s32) dw_cur_pos < 0) 169 if ((s32) dw_cur_pos < 0)
170 return -EPERM; 170 return -EPERM;
@@ -487,12 +487,12 @@ bool cod_init(void)
487 * loaded must be the first element of the args array and must be a fully 487 * loaded must be the first element of the args array and must be a fully
488 * qualified pathname. 488 * qualified pathname.
489 * Details: 489 * Details:
490 * if nArgc doesn't match the number of arguments in the args array, the 490 * if num_argc doesn't match the number of arguments in the args array, the
491 * args array is searched for a NULL terminating entry, and argc is 491 * args array is searched for a NULL terminating entry, and argc is
492 * recalculated to reflect this. In this way, we can support NULL 492 * recalculated to reflect this. In this way, we can support NULL
493 * terminating args arrays, if nArgc is very large. 493 * terminating args arrays, if num_argc is very large.
494 */ 494 */
495int cod_load_base(struct cod_manager *hmgr, u32 nArgc, char *args[], 495int cod_load_base(struct cod_manager *hmgr, u32 num_argc, char *args[],
496 cod_writefxn pfn_write, void *pArb, char *envp[]) 496 cod_writefxn pfn_write, void *pArb, char *envp[])
497{ 497{
498 dbll_flags flags; 498 dbll_flags flags;
@@ -503,7 +503,7 @@ int cod_load_base(struct cod_manager *hmgr, u32 nArgc, char *args[],
503 503
504 DBC_REQUIRE(refs > 0); 504 DBC_REQUIRE(refs > 0);
505 DBC_REQUIRE(IS_VALID(hmgr)); 505 DBC_REQUIRE(IS_VALID(hmgr));
506 DBC_REQUIRE(nArgc > 0); 506 DBC_REQUIRE(num_argc > 0);
507 DBC_REQUIRE(args != NULL); 507 DBC_REQUIRE(args != NULL);
508 DBC_REQUIRE(args[0] != NULL); 508 DBC_REQUIRE(args[0] != NULL);
509 DBC_REQUIRE(pfn_write != NULL); 509 DBC_REQUIRE(pfn_write != NULL);
@@ -513,9 +513,9 @@ int cod_load_base(struct cod_manager *hmgr, u32 nArgc, char *args[],
513 * Make sure every argv[] stated in argc has a value, or change argc to 513 * Make sure every argv[] stated in argc has a value, or change argc to
514 * reflect true number in NULL terminated argv array. 514 * reflect true number in NULL terminated argv array.
515 */ 515 */
516 for (i = 0; i < nArgc; i++) { 516 for (i = 0; i < num_argc; i++) {
517 if (args[i] == NULL) { 517 if (args[i] == NULL) {
518 nArgc = i; 518 num_argc = i;
519 break; 519 break;
520 } 520 }
521 } 521 }