diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-08-12 18:50:22 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-08-21 15:25:30 -0500 |
commit | 47f79129ecf5fd12d847c2e63b6ce39d1df4a648 (patch) | |
tree | 6ca833bb26cb664145a84ae44b4ba4928dacaac7 /drivers/media/usb/as102/as102_fe.h | |
parent | c098c219b0c2da64250dd0542c5c54ca7245d1a5 (diff) | |
download | op-kernel-dev-47f79129ecf5fd12d847c2e63b6ce39d1df4a648.zip op-kernel-dev-47f79129ecf5fd12d847c2e63b6ce39d1df4a648.tar.gz |
[media] as102: prepare as102_fe to be compiled as a module
Remove the dependencies of as102_cmd from as102, in order to
allow it to be compiled as a separate module.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/as102/as102_fe.h')
-rw-r--r-- | drivers/media/usb/as102/as102_fe.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/media/usb/as102/as102_fe.h b/drivers/media/usb/as102/as102_fe.h new file mode 100644 index 0000000..4098cf8 --- /dev/null +++ b/drivers/media/usb/as102/as102_fe.h @@ -0,0 +1,29 @@ +/* + * Abilis Systems Single DVB-T Receiver + * Copyright (C) 2014 Mauro Carvalho Chehab <m.chehab@samsung.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include "as10x_types.h" + +struct as102_fe_ops { + int (*set_tune)(void *priv, struct as10x_tune_args *tune_args); + int (*get_tps)(void *priv, struct as10x_tps *tps); + int (*get_status)(void *priv, struct as10x_tune_status *tstate); + int (*get_stats)(void *priv, struct as10x_demod_stats *demod_stats); + int (*stream_ctrl)(void *priv, int acquire, uint32_t elna_cfg); +}; + +struct dvb_frontend *as102_attach(const char *name, + const struct as102_fe_ops *ops, + void *priv, + uint8_t elna_cfg); |