From: Trent Piepho Date: Sun, 31 May 2009 00:45:46 +0000 (-0300) Subject: V4L/DVB (11908): w8968cf: Use v4l bounding/alignment function X-Git-Tag: v2.6.31-rc1~40^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c657a99fd655c0daa7450854a914d21c1da805c;p=pandora-kernel.git V4L/DVB (11908): w8968cf: Use v4l bounding/alignment function The v4l function has a better algorithm for aligning image size. The existing code was casting pointers to u32 and to unsigned int into pointers to u16. This could mess up if someone passed in an image size greater than 65,535 and on big-endian platforms it won't work at all. The existing bounding code would shrink an image if it was too big, but returned ERANGE if it was too small. The code will not shrink or expand as necessary. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed