mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
- remove unused code
- only report warning on FW failure
This commit is contained in:
parent
b185b5fb66
commit
fe80bc1154
@ -357,19 +357,6 @@ static int update_by_mnemonic(struct mxl *state,
|
||||
return stat;
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void extract_from_mnemonic(u32 regAddr, u8 lsbPos, u8 width,
|
||||
u32 *toAddr, u8 *toLsbPos, u8 *toWidth)
|
||||
{
|
||||
if (toAddr)
|
||||
*toAddr = regAddr;
|
||||
if (toLsbPos)
|
||||
*toLsbPos = lsbPos;
|
||||
if (toWidth)
|
||||
*toWidth = width;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int firmware_is_alive(struct mxl *state)
|
||||
{
|
||||
u32 hb0, hb1;
|
||||
@ -379,10 +366,10 @@ static int firmware_is_alive(struct mxl *state)
|
||||
msleep(20);
|
||||
if (read_register(state, HYDRA_HEAR_BEAT, &hb1))
|
||||
return 0;
|
||||
if (hb1 == hb0)
|
||||
if (hb1 == hb0) {
|
||||
pr_warn("mxl5xx: Hydra FW not running!\n");
|
||||
return 0;
|
||||
|
||||
pr_info("mxl5xx: Hydra FW alive. Hail!\n");
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user