aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/mt352.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/mt352.h')
-rw-r--r--drivers/media/dvb/frontends/mt352.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/mt352.h b/drivers/media/dvb/frontends/mt352.h
index 9e7ff4b8fe5..0de2057f9d9 100644
--- a/drivers/media/dvb/frontends/mt352.h
+++ b/drivers/media/dvb/frontends/mt352.h
@@ -54,6 +54,11 @@ struct mt352_config
54extern struct dvb_frontend* mt352_attach(const struct mt352_config* config, 54extern struct dvb_frontend* mt352_attach(const struct mt352_config* config,
55 struct i2c_adapter* i2c); 55 struct i2c_adapter* i2c);
56 56
57extern int mt352_write(struct dvb_frontend* fe, u8* ibuf, int ilen); 57static inline int mt352_write(struct dvb_frontend *fe, u8 *buf, int len) {
58 int r = 0;
59 if (fe->ops.write)
60 r = fe->ops.write(fe, buf, len);
61 return r;
62}
58 63
59#endif // MT352_H 64#endif // MT352_H