[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)
commit7e8f15c5aa9b8021ee933336f3e055f279482051
tree331ba060eb30b0164a869c212f88f36b3a251ff4
parentc29b8f3149f2916e98fc3b8d6c1df2137d003979
[media] s5k5baf: allow to handle arbitrary long i2c sequences

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