Il 21/03/2012 16:56, Michael Büsch ha scritto: > This adds the Fitipower fc0011 tuner driver. > > Note: The '#if 0' statements will be removed on the final submission. > > Signed-off-by: Michael Buesch <m@xxxxxxx> > > --- ...... > + > +#if 0 //TODO 3.3 > +static int fc0011_set_params(struct dvb_frontend *fe) > +#else > +static int fc0011_set_params(struct dvb_frontend *fe, > + struct dvb_frontend_parameters *params) > +#endif > +{ > + struct fc0011_priv *priv = fe->tuner_priv; > + int err; > + unsigned int i; > +#if 0 //TODO 3.3 > + struct dtv_frontend_properties *p = &fe->dtv_property_cache; > + u32 freq = p->frequency / 1000; > + u32 delsys = p->delivery_system; The "delsys" variable is unused, you can delete it. BTW, I only compiled the driver, as I don't have the hardware to test it. Regards, Gianluca > + u32 bandwidth = p->bandwidth_hz / 1000; > +#else > + u32 freq = params->frequency / 1000; > + u32 bandwidth = params->u.ofdm.bandwidth / 1000; > +#endif -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html