Skip to content

Commit

Permalink
fix compiler warnings/errors
Browse files Browse the repository at this point in the history
Signed-off-by: hayati ayguen <h_ayguen@web.de>
  • Loading branch information
hayguen committed Sep 16, 2020
1 parent f8c6475 commit 8ef067e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tuner_r82xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,13 +779,12 @@ static int r82xx_set_pll_yc(struct r82xx_priv *priv, uint32_t freq)
return rc;
}

if (vco_frac == 0)
{
if (vco_frac == 0) {
/* Disable frac pll */
rc = r82xx_write_reg_mask(priv, 0x12, 0x08, 0x08);
if(rc < 0) {
if (priv->cfg->verbose)
fprintf(stderr, "r82xx_set_pll_yc(): error writing 'disable frac pll' into i2c reg 0x12\n");
if (priv->cfg->verbose)
fprintf(stderr, "r82xx_set_pll_yc(): error writing 'disable frac pll' into i2c reg 0x12\n");
return rc;
}
}
Expand Down Expand Up @@ -1105,14 +1104,15 @@ static int r82xx_set_pll(struct r82xx_priv *priv, uint32_t freq)

int r82xx_is_tuner_locked(struct r82xx_priv *priv)
{
int rc;
uint8_t data[5];

/* was all PLL stuff set for last frequency? */
if (! priv->tuner_pll_set)
return 1;

/* Check if PLL has locked */
int rc = r82xx_read(priv, 0x00, data, sizeof(data));
rc = r82xx_read(priv, 0x00, data, sizeof(data));
if (rc < 0)
return -3;
if (!(data[2] & 0x40)) {
Expand Down

0 comments on commit 8ef067e

Please sign in to comment.