V4L/DVB (8389): videodev: simplify get_index()
authorBrandon Philips <brandon@ifup.org>
Wed, 25 Jun 2008 01:58:25 +0000 (22:58 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 20 Jul 2008 10:28:39 +0000 (07:28 -0300)
Use Hans Verkuil's suggested method of implementing get_index which doesn't
depend on class_for_each_device and instead uses the video_device array. This
simplifies the code and reduces its memory footprint.

Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

No differences found