Commit d9a201df authored by Matthias Schwarzott's avatar Matthias Schwarzott Committed by Mauro Carvalho Chehab

[media] si2165: rename frontend -> fe

No functional changes.
Signed-off-by: default avatarMatthias Schwarzott <zzam@gentoo.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 120c41d3
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
struct si2165_state { struct si2165_state {
struct i2c_adapter *i2c; struct i2c_adapter *i2c;
struct dvb_frontend frontend; struct dvb_frontend fe;
struct si2165_config config; struct si2165_config config;
...@@ -988,9 +988,9 @@ struct dvb_frontend *si2165_attach(const struct si2165_config *config, ...@@ -988,9 +988,9 @@ struct dvb_frontend *si2165_attach(const struct si2165_config *config,
} }
/* create dvb_frontend */ /* create dvb_frontend */
memcpy(&state->frontend.ops, &si2165_ops, memcpy(&state->fe.ops, &si2165_ops,
sizeof(struct dvb_frontend_ops)); sizeof(struct dvb_frontend_ops));
state->frontend.demodulator_priv = state; state->fe.demodulator_priv = state;
/* powerup */ /* powerup */
io_ret = si2165_writereg8(state, 0x0000, state->config.chip_mode); io_ret = si2165_writereg8(state, 0x0000, state->config.chip_mode);
...@@ -1042,20 +1042,20 @@ struct dvb_frontend *si2165_attach(const struct si2165_config *config, ...@@ -1042,20 +1042,20 @@ struct dvb_frontend *si2165_attach(const struct si2165_config *config,
KBUILD_MODNAME, chip_name, rev_char, state->chip_type, KBUILD_MODNAME, chip_name, rev_char, state->chip_type,
state->chip_revcode); state->chip_revcode);
strlcat(state->frontend.ops.info.name, chip_name, strlcat(state->fe.ops.info.name, chip_name,
sizeof(state->frontend.ops.info.name)); sizeof(state->fe.ops.info.name));
n = 0; n = 0;
if (state->has_dvbt) { if (state->has_dvbt) {
state->frontend.ops.delsys[n++] = SYS_DVBT; state->fe.ops.delsys[n++] = SYS_DVBT;
strlcat(state->frontend.ops.info.name, " DVB-T", strlcat(state->fe.ops.info.name, " DVB-T",
sizeof(state->frontend.ops.info.name)); sizeof(state->fe.ops.info.name));
} }
if (state->has_dvbc) if (state->has_dvbc)
dev_warn(&state->i2c->dev, "%s: DVB-C is not yet supported.\n", dev_warn(&state->i2c->dev, "%s: DVB-C is not yet supported.\n",
KBUILD_MODNAME); KBUILD_MODNAME);
return &state->frontend; return &state->fe;
error: error:
kfree(state); kfree(state);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment