static int AVL6211_Get_Frontend(struct dvb_frontend *fe, struct dvb_frontend_parameters *p) {//these content will be writed into eeprom . struct avl6211_state *state = fe->demodulator_priv; p->frequency=state->freq; p->u.qam.modulation=state->mode; p->u.qam.symbol_rate=state->symbol_rate; return 0; } static ssize_t avl_frontend_show_short_circuit(struct class* class, struct class_attribute* attr, char* buf) { int ant_overload_status = AVL6211_Ant_Overload_Ctrl(); return sprintf(buf, "%d\n", ant_overload_status); } static struct class_attribute avl_frontend_class_attrs[] = { __ATTR(short_circuit, S_IRUGO | S_IWUSR, avl_frontend_show_short_circuit, NULL), __ATTR_NULL }; static struct class avl_frontend_class = { .name = "avl_frontend", .class_attrs = avl_frontend_class_attrs, }; static int avl6211_fe_get_ops(struct aml_fe_dev *dev, int mode, void *ops)
static int AVL6211_Get_Frontend(struct dvb_frontend *fe, struct dvb_frontend_parameters *p) { //these content will be writed into eeprom . struct avl6211_state *state = fe->demodulator_priv; p->frequency=state->freq; p->u.qam.modulation=state->mode; p->u.qam.symbol_rate=state->symbol_rate; return 0; } static ssize_t avl_frontend_show_short_circuit(struct class* class, struct class_attribute* attr, char* buf) { struct aml_fe_dev *dev = avl6211_get_cur_dev(); int ant_overload_status = AVL6211_Ant_Overload_Ctrl(dev->antoverload_gpio); return sprintf(buf, "%d\n", ant_overload_status); } static struct class_attribute avl_frontend_class_attrs[] = { __ATTR(short_circuit, S_IRUGO | S_IWUSR, avl_frontend_show_short_circuit, NULL), __ATTR_NULL }; static struct class avl_frontend_class = { .name = "avl_frontend", .class_attrs = avl_frontend_class_attrs, }; static int avl6211_fe_get_ops(struct aml_fe_dev *dev, int mode, void *ops)