diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-08-08 12:10:08 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-09-26 14:53:24 (GMT) |
commit | c10d14d62d7b7596fd5c7bb8aad3f2b56f8640e6 (patch) | |
tree | f66723500fbc0414742f14411cd64dd6d9a336a0 /drivers/media/dvb/frontends/stv0299.h | |
parent | 13fef9335f4fe2a73e1733f8807e69711736faef (diff) | |
download | linux-fsl-qoriq-c10d14d62d7b7596fd5c7bb8aad3f2b56f8640e6.tar.xz |
V4L/DVB (4384): Remove remaining static function calls
Rewrote _write() calls to use write() op.
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Acked-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/stv0299.h')
-rw-r--r-- | drivers/media/dvb/frontends/stv0299.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/stv0299.h b/drivers/media/dvb/frontends/stv0299.h index 1504828..d1abaf9 100644 --- a/drivers/media/dvb/frontends/stv0299.h +++ b/drivers/media/dvb/frontends/stv0299.h @@ -89,9 +89,15 @@ struct stv0299_config int (*set_symbol_rate)(struct dvb_frontend* fe, u32 srate, u32 ratio); }; -extern int stv0299_writereg (struct dvb_frontend* fe, u8 reg, u8 data); - extern struct dvb_frontend* stv0299_attach(const struct stv0299_config* config, struct i2c_adapter* i2c); +static inline int stv0299_writereg(struct dvb_frontend *fe, u8 reg, u8 val) { + int r = 0; + u8 buf[] = {reg, val}; + if (fe->ops.write) + r = fe->ops.write(fe, buf, 2); + return r; +} + #endif // STV0299_H |