mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 02:21:47 +00:00
staging: vc04_services: fix CamelCase
This fixes the CamelCase of some variables. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6e474d8e39
commit
801b1aa002
@ -3827,26 +3827,26 @@ VCHIQ_STATUS_T vchiq_send_remote_use_active(VCHIQ_STATE_T *state)
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
void vchiq_log_dump_mem(const char *label, uint32_t addr, const void *voidMem,
|
void vchiq_log_dump_mem(const char *label, uint32_t addr, const void *void_mem,
|
||||||
size_t numBytes)
|
size_t num_bytes)
|
||||||
{
|
{
|
||||||
const uint8_t *mem = (const uint8_t *)voidMem;
|
const uint8_t *mem = (const uint8_t *)void_mem;
|
||||||
size_t offset;
|
size_t offset;
|
||||||
char lineBuf[100];
|
char line_buf[100];
|
||||||
char *s;
|
char *s;
|
||||||
|
|
||||||
while (numBytes > 0) {
|
while (num_bytes > 0) {
|
||||||
s = lineBuf;
|
s = line_buf;
|
||||||
|
|
||||||
for (offset = 0; offset < 16; offset++) {
|
for (offset = 0; offset < 16; offset++) {
|
||||||
if (offset < numBytes)
|
if (offset < num_bytes)
|
||||||
s += snprintf(s, 4, "%02x ", mem[offset]);
|
s += snprintf(s, 4, "%02x ", mem[offset]);
|
||||||
else
|
else
|
||||||
s += snprintf(s, 4, " ");
|
s += snprintf(s, 4, " ");
|
||||||
}
|
}
|
||||||
|
|
||||||
for (offset = 0; offset < 16; offset++) {
|
for (offset = 0; offset < 16; offset++) {
|
||||||
if (offset < numBytes) {
|
if (offset < num_bytes) {
|
||||||
uint8_t ch = mem[offset];
|
uint8_t ch = mem[offset];
|
||||||
|
|
||||||
if ((ch < ' ') || (ch > '~'))
|
if ((ch < ' ') || (ch > '~'))
|
||||||
@ -3858,16 +3858,16 @@ void vchiq_log_dump_mem(const char *label, uint32_t addr, const void *voidMem,
|
|||||||
|
|
||||||
if ((label != NULL) && (*label != '\0'))
|
if ((label != NULL) && (*label != '\0'))
|
||||||
vchiq_log_trace(VCHIQ_LOG_TRACE,
|
vchiq_log_trace(VCHIQ_LOG_TRACE,
|
||||||
"%s: %08x: %s", label, addr, lineBuf);
|
"%s: %08x: %s", label, addr, line_buf);
|
||||||
else
|
else
|
||||||
vchiq_log_trace(VCHIQ_LOG_TRACE,
|
vchiq_log_trace(VCHIQ_LOG_TRACE,
|
||||||
"%08x: %s", addr, lineBuf);
|
"%08x: %s", addr, line_buf);
|
||||||
|
|
||||||
addr += 16;
|
addr += 16;
|
||||||
mem += 16;
|
mem += 16;
|
||||||
if (numBytes > 16)
|
if (num_bytes > 16)
|
||||||
numBytes -= 16;
|
num_bytes -= 16;
|
||||||
else
|
else
|
||||||
numBytes = 0;
|
num_bytes = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ vchiq_blocking_bulk_transfer(VCHIQ_SERVICE_HANDLE_T handle, void *data,
|
|||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
#define VCHIQ_INIT_RETRIES 10
|
#define VCHIQ_INIT_RETRIES 10
|
||||||
VCHIQ_STATUS_T vchiq_initialise(VCHIQ_INSTANCE_T *instanceOut)
|
VCHIQ_STATUS_T vchiq_initialise(VCHIQ_INSTANCE_T *instance_out)
|
||||||
{
|
{
|
||||||
VCHIQ_STATUS_T status = VCHIQ_ERROR;
|
VCHIQ_STATUS_T status = VCHIQ_ERROR;
|
||||||
VCHIQ_STATE_T *state;
|
VCHIQ_STATE_T *state;
|
||||||
@ -108,7 +108,7 @@ VCHIQ_STATUS_T vchiq_initialise(VCHIQ_INSTANCE_T *instanceOut)
|
|||||||
mutex_init(&instance->bulk_waiter_list_mutex);
|
mutex_init(&instance->bulk_waiter_list_mutex);
|
||||||
INIT_LIST_HEAD(&instance->bulk_waiter_list);
|
INIT_LIST_HEAD(&instance->bulk_waiter_list);
|
||||||
|
|
||||||
*instanceOut = instance;
|
*instance_out = instance;
|
||||||
|
|
||||||
status = VCHIQ_SUCCESS;
|
status = VCHIQ_SUCCESS;
|
||||||
|
|
||||||
|
@ -42,13 +42,13 @@
|
|||||||
/* ---- Constants and Types ---------------------------------------------- */
|
/* ---- Constants and Types ---------------------------------------------- */
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
void *armSharedMemVirt;
|
void *arm_shared_mem_virt;
|
||||||
dma_addr_t armSharedMemPhys;
|
dma_addr_t arm_shared_mem_phys;
|
||||||
size_t armSharedMemSize;
|
size_t arm_shared_mem_size;
|
||||||
|
|
||||||
void *vcSharedMemVirt;
|
void *vc_shared_mem_virt;
|
||||||
dma_addr_t vcSharedMemPhys;
|
dma_addr_t vc_shared_mem_phys;
|
||||||
size_t vcSharedMemSize;
|
size_t vc_shared_mem_size;
|
||||||
} VCHIQ_SHARED_MEM_INFO_T;
|
} VCHIQ_SHARED_MEM_INFO_T;
|
||||||
|
|
||||||
/* ---- Variable Externs ------------------------------------------------- */
|
/* ---- Variable Externs ------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user