- remove unused code

- only report warning on FW failure
This commit is contained in:
none 2020-01-16 10:49:56 +01:00
parent b185b5fb66
commit fe80bc1154
1 changed files with 3 additions and 16 deletions

View File

@ -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;
}