Skip to content

Commit

Permalink
media: frontends: fix ops get_algo()'s return type
Browse files Browse the repository at this point in the history
The method dvb_frontend_ops::get_frontend_algo() is defined as
returning an 'enum dvbfe_algo', but the implementation in this
driver returns an 'int'.

Fix this by returning 'enum dvbfe_algo' on drivers.

[[email protected]: merge similar patches and patch
 ddbridge-mci.c the same way]
Signed-off-by: Luc Van Oostenryck <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
lucvoo authored and mchehab committed May 5, 2018
1 parent 530d473 commit 8d718e5
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/cx24116.c
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ static int cx24116_tune(struct dvb_frontend *fe, bool re_tune,
return cx24116_read_status(fe, status);
}

static int cx24116_get_algo(struct dvb_frontend *fe)
static enum dvbfe_algo cx24116_get_algo(struct dvb_frontend *fe)
{
return DVBFE_ALGO_HW;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/cx24117.c
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ static int cx24117_tune(struct dvb_frontend *fe, bool re_tune,
return cx24117_read_status(fe, status);
}

static int cx24117_get_algo(struct dvb_frontend *fe)
static enum dvbfe_algo cx24117_get_algo(struct dvb_frontend *fe)
{
return DVBFE_ALGO_HW;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/cx24120.c
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ static int cx24120_tune(struct dvb_frontend *fe, bool re_tune,
return cx24120_read_status(fe, status);
}

static int cx24120_get_algo(struct dvb_frontend *fe)
static enum dvbfe_algo cx24120_get_algo(struct dvb_frontend *fe)
{
return DVBFE_ALGO_HW;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/cx24123.c
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ static int cx24123_tune(struct dvb_frontend *fe,
return retval;
}

static int cx24123_get_algo(struct dvb_frontend *fe)
static enum dvbfe_algo cx24123_get_algo(struct dvb_frontend *fe)
{
return DVBFE_ALGO_HW;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/cxd2820r_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ static enum dvbfe_search cxd2820r_search(struct dvb_frontend *fe)
return DVBFE_ALGO_SEARCH_ERROR;
}

static int cxd2820r_get_frontend_algo(struct dvb_frontend *fe)
static enum dvbfe_algo cxd2820r_get_frontend_algo(struct dvb_frontend *fe)
{
return DVBFE_ALGO_CUSTOM;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/mb86a20s.c
Original file line number Diff line number Diff line change
Expand Up @@ -2055,7 +2055,7 @@ static void mb86a20s_release(struct dvb_frontend *fe)
kfree(state);
}

static int mb86a20s_get_frontend_algo(struct dvb_frontend *fe)
static enum dvbfe_algo mb86a20s_get_frontend_algo(struct dvb_frontend *fe)
{
return DVBFE_ALGO_HW;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/mxl5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ static void release(struct dvb_frontend *fe)
kfree(state);
}

static int get_algo(struct dvb_frontend *fe)
static enum dvbfe_algo get_algo(struct dvb_frontend *fe)
{
return DVBFE_ALGO_HW;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/s921.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ static int s921_tune(struct dvb_frontend *fe,
return rc;
}

static int s921_get_algo(struct dvb_frontend *fe)
static enum dvbfe_algo s921_get_algo(struct dvb_frontend *fe)
{
return DVBFE_ALGO_HW;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/stv0910.c
Original file line number Diff line number Diff line change
Expand Up @@ -1639,7 +1639,7 @@ static int tune(struct dvb_frontend *fe, bool re_tune,
return 0;
}

static int get_algo(struct dvb_frontend *fe)
static enum dvbfe_algo get_algo(struct dvb_frontend *fe)
{
return DVBFE_ALGO_HW;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/pci/bt8xx/dst.c
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ static int dst_tune_frontend(struct dvb_frontend* fe,
return 0;
}

static int dst_get_tuning_algo(struct dvb_frontend *fe)
static enum dvbfe_algo dst_get_tuning_algo(struct dvb_frontend *fe)
{
return dst_algo ? DVBFE_ALGO_HW : DVBFE_ALGO_SW;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/pci/ddbridge/ddbridge-mci.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ static int tune(struct dvb_frontend *fe, bool re_tune,
return 0;
}

static int get_algo(struct dvb_frontend *fe)
static enum dvbfe_algo get_algo(struct dvb_frontend *fe)
{
return DVBFE_ALGO_HW;
}
Expand Down

0 comments on commit 8d718e5

Please sign in to comment.