Commit aa40d194 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] tuner-xc2028.c: fix compile warning

drivers/media/common/tuners/tuner-xc2028.c: In function 'generic_set_freq':
drivers/media/common/tuners/tuner-xc2028.c:936:15: warning: comparison between 'enum tuner_mode' and 'enum v4l2_tuner_type'

Argument type was enum tuner_mode, but should have been enum v4l2_tuner_type.
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e83dd485
...@@ -907,7 +907,7 @@ static int xc2028_signal(struct dvb_frontend *fe, u16 *strength) ...@@ -907,7 +907,7 @@ static int xc2028_signal(struct dvb_frontend *fe, u16 *strength)
#define DIV 15625 #define DIV 15625
static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */, static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */,
enum tuner_mode new_mode, enum v4l2_tuner_type new_type,
unsigned int type, unsigned int type,
v4l2_std_id std, v4l2_std_id std,
u16 int_freq) u16 int_freq)
...@@ -933,7 +933,7 @@ static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */, ...@@ -933,7 +933,7 @@ static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */,
* that xc2028 will be in a safe state. * that xc2028 will be in a safe state.
* Maybe this might also be needed for DTV. * Maybe this might also be needed for DTV.
*/ */
if (new_mode == V4L2_TUNER_ANALOG_TV) { if (new_type == V4L2_TUNER_ANALOG_TV) {
rc = send_seq(priv, {0x00, 0x00}); rc = send_seq(priv, {0x00, 0x00});
/* Analog modes require offset = 0 */ /* Analog modes require offset = 0 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment