linux/drivers/media
Chris Pascoe 0a196b6fa9 V4L/DVB (6642): xc2028: don't duplicate max_len in priv
There is no need to duplicate the max_len field from the ctrl structure
in the private data.  If we use it directly from priv->ctrl, we can memcpy
the structure (apart from strings) to reduce maintenance as it grows.

Enforce a minimum max_len length of 8 data bytes (+ 1 address byte) as seems
to be required by the tuner.

Also, use kstrdup instead of open coding the string duplication.

Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-25 19:02:27 -02:00
..
common V4L/DVB (6600): V4L: videobuf: don't chew up namespace STATE_.*, convert to VIDEOBUF_ 2008-01-25 19:02:11 -02:00
dvb V4L/DVB (6630): zl10353: calculate input frequency register instead of using hardcoded value 2008-01-25 19:02:21 -02:00
radio V4L/DVB (6616): drivers/media/radio: Add missing "space" 2008-01-25 19:02:15 -02:00
video V4L/DVB (6642): xc2028: don't duplicate max_len in priv 2008-01-25 19:02:27 -02:00
Kconfig V4L/DVB (6443): make tda9887 build selectable via Kconfig 2008-01-25 19:01:10 -02:00
Makefile V4L/DVB (6814): Makefile: always enter video/ 2007-12-13 17:58:05 -02:00