From: Mauro Carvalho Chehab Date: Tue, 11 Aug 2015 15:18:30 +0000 (-0300) Subject: [media] tc358743: don't use variable length array for I2C writes X-Git-Tag: omap-for-v4.3/fixes-rc1~26^2~12 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d88f831d20c10b5633cd71117917cd04a0735a8;p=pandora-kernel.git [media] tc358743: don't use variable length array for I2C writes 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. Signed-off-by: Mauro Carvalho Chehab Acked-by: Mats Randgaard Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed