Message ID | 1407787095-2167-5-git-send-email-olli.salonen@iki.fi (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Acked-by: Antti Palosaari <crope@iki.fi> Reviewed-by: Antti Palosaari <crope@iki.fi> Antti On 08/11/2014 10:58 PM, Olli Salonen wrote: > Setting the LNB voltage requires setting some GPIOs on the cx23885 with some boards before calling the actual set_voltage function in the demod driver. Add a function pointer into state for that case. > > Signed-off-by: Olli Salonen <olli.salonen@iki.fi> > --- > drivers/media/pci/cx23885/cx23885.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/media/pci/cx23885/cx23885.h b/drivers/media/pci/cx23885/cx23885.h > index 1040b3e..e60ff7f 100644 > --- a/drivers/media/pci/cx23885/cx23885.h > +++ b/drivers/media/pci/cx23885/cx23885.h > @@ -330,6 +330,8 @@ struct cx23885_tsport { > struct i2c_client *i2c_client_tuner; > > int (*set_frontend)(struct dvb_frontend *fe); > + int (*fe_set_voltage)(struct dvb_frontend *fe, > + fe_sec_voltage_t voltage); > }; > > struct cx23885_kernel_ir { >
diff --git a/drivers/media/pci/cx23885/cx23885.h b/drivers/media/pci/cx23885/cx23885.h index 1040b3e..e60ff7f 100644 --- a/drivers/media/pci/cx23885/cx23885.h +++ b/drivers/media/pci/cx23885/cx23885.h @@ -330,6 +330,8 @@ struct cx23885_tsport { struct i2c_client *i2c_client_tuner; int (*set_frontend)(struct dvb_frontend *fe); + int (*fe_set_voltage)(struct dvb_frontend *fe, + fe_sec_voltage_t voltage); }; struct cx23885_kernel_ir {
Setting the LNB voltage requires setting some GPIOs on the cx23885 with some boards before calling the actual set_voltage function in the demod driver. Add a function pointer into state for that case. Signed-off-by: Olli Salonen <olli.salonen@iki.fi> --- drivers/media/pci/cx23885/cx23885.h | 2 ++ 1 file changed, 2 insertions(+)