Files
linux/drivers/media/dvb/frontends
Xi Wang 88a782d295 lgdt330x: fix signedness error in i2c_read_demod_bytes()
commit 34817174fc upstream.

The error handling in lgdt3303_read_status() and lgdt330x_read_ucblocks()
doesn't work, because i2c_read_demod_bytes() returns a u8 and (err < 0)
is always false.

        err = i2c_read_demod_bytes(state, 0x58, buf, 1);
        if (err < 0)
                return err;

Change the return type of i2c_read_demod_bytes() to int.  Also change
the return value on error to -EIO to make (err < 0) work.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-04-02 09:27:18 -07:00
..
2010-05-18 00:47:01 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-11-11 09:36:14 -08:00
2011-11-11 09:36:14 -08:00
2011-03-21 20:31:41 -03:00
2011-03-02 13:45:12 -03:00
2011-11-11 09:36:14 -08:00
2011-03-21 20:31:43 -03:00
2011-11-11 09:36:14 -08:00
2011-03-21 20:31:43 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2005-04-16 15:20:36 -07:00
2011-03-31 11:26:23 -03:00
2010-12-29 08:16:26 -02:00
2010-12-29 08:16:26 -02:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00