[media] af9035: few small I2C master xfer changes
authorAntti Palosaari <crope@iki.fi>
Mon, 1 Sep 2014 01:17:12 +0000 (22:17 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 22:39:12 +0000 (19:39 -0300)
commitee36381ee8cec66ff976ad2c91e85dbee4a02859
tree5a09fb3cc362447e420da1995ec5eb8c3eea9f77
parent6a087f1f6bb731719ff7b8e20a3ec6a8613fff12
[media] af9035: few small I2C master xfer changes

Biggest problem of that function is complexity. Try reduce complexity:

* define macros to detect all 3 supported xfers
* remove duplicate message maximum size checks

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/dvb-usb-v2/af9035.c