diff options
author | Rene Sapiens <rene.sapiens@ti.com> | 2010-07-09 22:24:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-22 13:45:36 -0400 |
commit | 383b834522b11eec607dbe422835dcf5812730c3 (patch) | |
tree | 195f0be11cc94701884e34485d5111c3770f373f /drivers/staging/tidspbridge/gen | |
parent | 13b18c29ec01068dce4b266cc179d4e90e79d0e9 (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:
========================================
pstrFxn to str_fxn
pstrLibName to str_lib_name
pstrSect to str_sect
pstrSym to str_sym
pstrZLFileName to str_zl_file_name
pstrZLFile to str_zl_file
pszCoffPath to sz_coff_path
pszMode to sz_mode
pszName to sz_name
pszSectName to sz_sect_name
pszUuid to sz_uuid
pszZlDllName to sz_zl_dll_name
puAddr to addr
pulAddr to addr
pulBufSize to buff_size
pulBytes to nbytes
========================================
Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/tidspbridge/gen')
-rw-r--r-- | drivers/staging/tidspbridge/gen/uuidutil.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/drivers/staging/tidspbridge/gen/uuidutil.c b/drivers/staging/tidspbridge/gen/uuidutil.c index 070761bf62b..840da427faf 100644 --- a/drivers/staging/tidspbridge/gen/uuidutil.c +++ b/drivers/staging/tidspbridge/gen/uuidutil.c | |||
@@ -36,14 +36,14 @@ | |||
36 | * Note: snprintf format specifier is: | 36 | * Note: snprintf format specifier is: |
37 | * %[flags] [width] [.precision] [{h | l | I64 | L}]type | 37 | * %[flags] [width] [.precision] [{h | l | I64 | L}]type |
38 | */ | 38 | */ |
39 | void uuid_uuid_to_string(IN struct dsp_uuid *uuid_obj, OUT char *pszUuid, | 39 | void uuid_uuid_to_string(IN struct dsp_uuid *uuid_obj, OUT char *sz_uuid, |
40 | IN s32 size) | 40 | IN s32 size) |
41 | { | 41 | { |
42 | s32 i; /* return result from snprintf. */ | 42 | s32 i; /* return result from snprintf. */ |
43 | 43 | ||
44 | DBC_REQUIRE(uuid_obj && pszUuid); | 44 | DBC_REQUIRE(uuid_obj && sz_uuid); |
45 | 45 | ||
46 | i = snprintf(pszUuid, size, | 46 | i = snprintf(sz_uuid, size, |
47 | "%.8X_%.4X_%.4X_%.2X%.2X_%.2X%.2X%.2X%.2X%.2X%.2X", | 47 | "%.8X_%.4X_%.4X_%.2X%.2X_%.2X%.2X%.2X%.2X%.2X%.2X", |
48 | uuid_obj->ul_data1, uuid_obj->us_data2, uuid_obj->us_data3, | 48 | uuid_obj->ul_data1, uuid_obj->us_data2, uuid_obj->us_data3, |
49 | uuid_obj->uc_data4, uuid_obj->uc_data5, | 49 | uuid_obj->uc_data4, uuid_obj->uc_data5, |
@@ -75,39 +75,39 @@ static s32 uuid_hex_to_bin(char *buf, s32 len) | |||
75 | * Purpose: | 75 | * Purpose: |
76 | * Converts a string to a struct dsp_uuid. | 76 | * Converts a string to a struct dsp_uuid. |
77 | */ | 77 | */ |
78 | void uuid_uuid_from_string(IN char *pszUuid, OUT struct dsp_uuid *uuid_obj) | 78 | void uuid_uuid_from_string(IN char *sz_uuid, OUT struct dsp_uuid *uuid_obj) |
79 | { | 79 | { |
80 | s32 j; | 80 | s32 j; |
81 | 81 | ||
82 | uuid_obj->ul_data1 = uuid_hex_to_bin(pszUuid, 8); | 82 | uuid_obj->ul_data1 = uuid_hex_to_bin(sz_uuid, 8); |
83 | pszUuid += 8; | 83 | sz_uuid += 8; |
84 | 84 | ||
85 | /* Step over underscore */ | 85 | /* Step over underscore */ |
86 | pszUuid++; | 86 | sz_uuid++; |
87 | 87 | ||
88 | uuid_obj->us_data2 = (u16) uuid_hex_to_bin(pszUuid, 4); | 88 | uuid_obj->us_data2 = (u16) uuid_hex_to_bin(sz_uuid, 4); |
89 | pszUuid += 4; | 89 | sz_uuid += 4; |
90 | 90 | ||
91 | /* Step over underscore */ | 91 | /* Step over underscore */ |
92 | pszUuid++; | 92 | sz_uuid++; |
93 | 93 | ||
94 | uuid_obj->us_data3 = (u16) uuid_hex_to_bin(pszUuid, 4); | 94 | uuid_obj->us_data3 = (u16) uuid_hex_to_bin(sz_uuid, 4); |
95 | pszUuid += 4; | 95 | sz_uuid += 4; |
96 | 96 | ||
97 | /* Step over underscore */ | 97 | /* Step over underscore */ |
98 | pszUuid++; | 98 | sz_uuid++; |
99 | 99 | ||
100 | uuid_obj->uc_data4 = (u8) uuid_hex_to_bin(pszUuid, 2); | 100 | uuid_obj->uc_data4 = (u8) uuid_hex_to_bin(sz_uuid, 2); |
101 | pszUuid += 2; | 101 | sz_uuid += 2; |
102 | 102 | ||
103 | uuid_obj->uc_data5 = (u8) uuid_hex_to_bin(pszUuid, 2); | 103 | uuid_obj->uc_data5 = (u8) uuid_hex_to_bin(sz_uuid, 2); |
104 | pszUuid += 2; | 104 | sz_uuid += 2; |
105 | 105 | ||
106 | /* Step over underscore */ | 106 | /* Step over underscore */ |
107 | pszUuid++; | 107 | sz_uuid++; |
108 | 108 | ||
109 | for (j = 0; j < 6; j++) { | 109 | for (j = 0; j < 6; j++) { |
110 | uuid_obj->uc_data6[j] = (u8) uuid_hex_to_bin(pszUuid, 2); | 110 | uuid_obj->uc_data6[j] = (u8) uuid_hex_to_bin(sz_uuid, 2); |
111 | pszUuid += 2; | 111 | sz_uuid += 2; |
112 | } | 112 | } |
113 | } | 113 | } |