From: Mauro Carvalho Chehab Date: Mon, 27 Sep 2010 01:58:28 +0000 (-0300) Subject: [media] tda18271: allow restricting max out to 4 bytes X-Git-Tag: v2.6.37-rc1~64^2~261 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e350d44fed8eb86a7192a579e3687fcd76a4645b;p=pandora-kernel.git [media] tda18271: allow restricting max out to 4 bytes By default, tda18271 tries to optimize I2C bus by updating all registers at the same time. Unfortunately, some devices doesn't support it. The current logic has a problem when small_i2c is equal to 8, since there are some transfers using 11 + 1 bytes. Fix the problem by enforcing the max size at the right place, and allows reducing it to max = 3 + 1. Acked-by: Michael Krufky Acked-by: Sri Deevi Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed