diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-11-01 08:12:58 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-11-03 12:56:49 -0500 |
commit | 6ac825cb3e64c4831d9efa93d3497b104c42c84e (patch) | |
tree | 39720e10d3a004f9ddebaf9ffc3eb0d12c45ef73 | |
parent | a7119f8629fbdb100a383b7351e1bd85274d8093 (diff) |
[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>
-rw-r--r-- | drivers/media/i2c/cx25840/cx25840-firmware.c | 8 |
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) | |||
113 | const u8 *ptr; | 113 | const u8 *ptr; |
114 | const char *fwname = get_fw_name(client); | 114 | const char *fwname = get_fw_name(client); |
115 | int size, retval; | 115 | int size, retval; |
116 | int MAX_BUF_SIZE = FWSEND; | 116 | int max_buf_size = FWSEND; |
117 | u32 gpio_oe = 0, gpio_da = 0; | 117 | u32 gpio_oe = 0, gpio_da = 0; |
118 | 118 | ||
119 | if (is_cx2388x(state)) { | 119 | if (is_cx2388x(state)) { |
@@ -123,8 +123,8 @@ int cx25840_loadfw(struct i2c_client *client) | |||
123 | } | 123 | } |
124 | 124 | ||
125 | /* cx231xx cannot accept more than 16 bytes at a time */ | 125 | /* cx231xx cannot accept more than 16 bytes at a time */ |
126 | if (is_cx231xx(state) && MAX_BUF_SIZE > 16) | 126 | if (is_cx231xx(state) && max_buf_size > 16) |
127 | MAX_BUF_SIZE = 16; | 127 | max_buf_size = 16; |
128 | 128 | ||
129 | if (request_firmware(&fw, fwname, FWDEV(client)) != 0) { | 129 | if (request_firmware(&fw, fwname, FWDEV(client)) != 0) { |
130 | v4l_err(client, "unable to open firmware %s\n", fwname); | 130 | v4l_err(client, "unable to open firmware %s\n", fwname); |
@@ -139,7 +139,7 @@ int cx25840_loadfw(struct i2c_client *client) | |||
139 | size = fw->size; | 139 | size = fw->size; |
140 | ptr = fw->data; | 140 | ptr = fw->data; |
141 | while (size > 0) { | 141 | while (size > 0) { |
142 | int len = min(MAX_BUF_SIZE - 2, size); | 142 | int len = min(max_buf_size - 2, size); |
143 | 143 | ||
144 | memcpy(buffer + 2, ptr, len); | 144 | memcpy(buffer + 2, ptr, len); |
145 | 145 | ||