summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/cx25840
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-01 09:12:58 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-03 15:56:49 -0200
commit6ac825cb3e64c4831d9efa93d3497b104c42c84e (patch)
tree39720e10d3a004f9ddebaf9ffc3eb0d12c45ef73 /drivers/media/i2c/cx25840
parenta7119f8629fbdb100a383b7351e1bd85274d8093 (diff)
downloadlinux-stable-6ac825cb3e64c4831d9efa93d3497b104c42c84e.tar.gz
linux-stable-6ac825cb3e64c4831d9efa93d3497b104c42c84e.tar.bz2
linux-stable-6ac825cb3e64c4831d9efa93d3497b104c42c84e.zip
[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>
Diffstat (limited to 'drivers/media/i2c/cx25840')
-rw-r--r--drivers/media/i2c/cx25840/cx25840-firmware.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/i2c/cx25840/cx25840-firmware.c b/drivers/media/i2c/cx25840/cx25840-firmware.c
index 6092bf71300f..9bbb31adc29d 100644
--- a/drivers/media/i2c/cx25840/cx25840-firmware.c
+++ b/drivers/media/i2c/cx25840/cx25840-firmware.c
@@ -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);