Re: [PATCH 1/4] tc358743: don't use variable length array for I2C writes

2015-08-12 Thread Mats Randgaard (matrandg)
On 08/11/2015 05:18 PM, Mauro Carvalho Chehab wrote: drivers/media/i2c/tc358743.c:148:19: warning: Variable length array is used. As the maximum size is 1026, we can't use dynamic var, as it would otherwise spend 1056 bytes of the stack at i2c_wr() function. So, allocate a buffer with the

[PATCH 1/4] tc358743: don't use variable length array for I2C writes

2015-08-11 Thread Mauro Carvalho Chehab
drivers/media/i2c/tc358743.c:148:19: warning: Variable length array is used. As the maximum size is 1026, we can't use dynamic var, as it would otherwise spend 1056 bytes of the stack at i2c_wr() function. So, allocate a buffer with the allowed maximum size together with the state var.

[PATCH 1/4] tc358743: don't use variable length array for I2C writes

2015-08-11 Thread Mauro Carvalho Chehab
drivers/media/i2c/tc358743.c:148:19: warning: Variable length array is used. As the maximum size is 1026, we can't use dynamic var, as it would otherwise spend 1056 bytes of the stack at i2c_wr() function. So, allocate a buffer with the allowed maximum size together with the state var.