From: Jacek Anaszewski Date: Mon, 25 Nov 2013 09:58:10 +0000 (-0300) Subject: [media] s5p-jpeg: Fix erroneous condition while validating bytesperline value X-Git-Tag: v3.14-rc1~20^2~290 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc690904247fdbb169e2544cbbbd4ebd2c05f8cb;p=pandora-kernel.git [media] s5p-jpeg: Fix erroneous condition while validating bytesperline value The aim of the condition is ensuring that the bytesperline value set by the user space application is proper for the given format and adjusting it if isn't. As the depth value of the format description entry is expressed in bits then the bytesperline value needs to be divided, not multiplied, by that value to get the number of bytes required to store single line of image samples. Signed-off-by: Jacek Anaszewski Signed-off-by: Kyungmin Park Acked-by: Hans Verkuil Signed-off-by: Sylwester Nawrocki Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed