[media] s5k5baf: allow to handle arbitrary long i2c sequences
authorAndrzej Hajda <a.hajda@samsung.com>
Thu, 9 Jan 2014 12:55:43 +0000 (09:55 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 4 Feb 2014 07:52:48 +0000 (05:52 -0200)
Using variable length array in s5k5baf_write_arr_seq caused
an implicit assumption that i2c sequences should be short.
The patch rewrites the function so it can handle sequences
of any length and does not use variable length array.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/s5k5baf.c

Simple merge