mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 23:14:31 +08:00
[media] cx25840: convert max_buf_size var to lowercase
CodingStyle fix: vars should be in lowercase. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
a7119f8629
commit
6ac825cb3e
@ -113,7 +113,7 @@ int cx25840_loadfw(struct i2c_client *client)
|
||||
const u8 *ptr;
|
||||
const char *fwname = get_fw_name(client);
|
||||
int size, retval;
|
||||
int MAX_BUF_SIZE = FWSEND;
|
||||
int max_buf_size = FWSEND;
|
||||
u32 gpio_oe = 0, gpio_da = 0;
|
||||
|
||||
if (is_cx2388x(state)) {
|
||||
@ -123,8 +123,8 @@ int cx25840_loadfw(struct i2c_client *client)
|
||||
}
|
||||
|
||||
/* cx231xx cannot accept more than 16 bytes at a time */
|
||||
if (is_cx231xx(state) && MAX_BUF_SIZE > 16)
|
||||
MAX_BUF_SIZE = 16;
|
||||
if (is_cx231xx(state) && max_buf_size > 16)
|
||||
max_buf_size = 16;
|
||||
|
||||
if (request_firmware(&fw, fwname, FWDEV(client)) != 0) {
|
||||
v4l_err(client, "unable to open firmware %s\n", fwname);
|
||||
@ -139,7 +139,7 @@ int cx25840_loadfw(struct i2c_client *client)
|
||||
size = fw->size;
|
||||
ptr = fw->data;
|
||||
while (size > 0) {
|
||||
int len = min(MAX_BUF_SIZE - 2, size);
|
||||
int len = min(max_buf_size - 2, size);
|
||||
|
||||
memcpy(buffer + 2, ptr, len);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user