Previous version of this driver had a memset before every call
to cmd. This meant the default value of cmd.arg[1] was zero unless
burst is set. Make sure it remains zero.
Also fe_sec_mini_cmd_t is an enum, so test against it.
Signed-off-by: Jemma Denson <[email protected]>
Signed-off-by: Patrick Boettcher <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
cmd.id = CMD_DISEQC_BURST;
cmd.len = 0;
cmd.arg[0] = 0x00;
- if (burst)
- cmd.arg[1] = 0x01;
+ cmd.arg[1] = (burst == SEC_MINI_B) ? 0x01 : 0x00;
dev_dbg(&state->i2c->dev, "%s: burst sent.\n", __func__);