Commit a7119f86 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] cx25840: Don't report an error if max size is adjusted

There's no reason to report:
	cx25840 7-0044:  Firmware download size changed to 16 bytes max length

If the driver needs to adjust the buffer's maximum size.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent ed0e3729
...@@ -122,10 +122,9 @@ int cx25840_loadfw(struct i2c_client *client) ...@@ -122,10 +122,9 @@ int cx25840_loadfw(struct i2c_client *client)
gpio_da = cx25840_read(client, 0x164); gpio_da = cx25840_read(client, 0x164);
} }
if (is_cx231xx(state) && MAX_BUF_SIZE > 16) { /* cx231xx cannot accept more than 16 bytes at a time */
v4l_err(client, " Firmware download size changed to 16 bytes max length\n"); if (is_cx231xx(state) && MAX_BUF_SIZE > 16)
MAX_BUF_SIZE = 16; /* cx231xx cannot accept more than 16 bytes at a time */ MAX_BUF_SIZE = 16;
}
if (request_firmware(&fw, fwname, FWDEV(client)) != 0) { if (request_firmware(&fw, fwname, FWDEV(client)) != 0) {
v4l_err(client, "unable to open firmware %s\n", fwname); v4l_err(client, "unable to open firmware %s\n", fwname);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment