diff options
author | Daniel Scheller <d.scheller@gmx.net> | 2018-05-09 22:08:01 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-05-28 23:44:22 +0200 |
commit | caf2827cfe546ae2fbc27641c619be57c23d2a9b (patch) | |
tree | 8eff21a9d92a4d941dbd54cb6814a8d10382d855 /drivers/media/pci/ddbridge | |
parent | media: ddbridge/mci: protect against out-of-bounds array access in stop() (diff) | |
download | linux-caf2827cfe546ae2fbc27641c619be57c23d2a9b.tar.xz linux-caf2827cfe546ae2fbc27641c619be57c23d2a9b.zip |
media: ddbridge/mci: add identifiers to function definition arguments
Fixes two checkpatch warnings
WARNING: function definition argument 'xxx' should also have an identifier name
in the ddb_mci_attach() prototype definition. checkpatch keeps complaining
on the "int (**fn_set_input)" as it seems to have issues with the
ptr-to-ptr, though this probably needs fixing in checkpatch.
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/pci/ddbridge')
-rw-r--r-- | drivers/media/pci/ddbridge/ddbridge-mci.c | 2 | ||||
-rw-r--r-- | drivers/media/pci/ddbridge/ddbridge-mci.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/pci/ddbridge/ddbridge-mci.c b/drivers/media/pci/ddbridge/ddbridge-mci.c index 8d9592e75ad5..4ac634fc96e4 100644 --- a/drivers/media/pci/ddbridge/ddbridge-mci.c +++ b/drivers/media/pci/ddbridge/ddbridge-mci.c @@ -500,7 +500,7 @@ static int probe(struct mci *state) struct dvb_frontend *ddb_mci_attach(struct ddb_input *input, int mci_type, int nr, - int (**fn_set_input)(struct dvb_frontend *, int)) + int (**fn_set_input)(struct dvb_frontend *fe, int input)) { struct ddb_port *port = input->port; struct ddb *dev = port->dev; diff --git a/drivers/media/pci/ddbridge/ddbridge-mci.h b/drivers/media/pci/ddbridge/ddbridge-mci.h index 453dcb9f8208..209cc2b92dff 100644 --- a/drivers/media/pci/ddbridge/ddbridge-mci.h +++ b/drivers/media/pci/ddbridge/ddbridge-mci.h @@ -151,6 +151,6 @@ struct mci_result { struct dvb_frontend *ddb_mci_attach(struct ddb_input *input, int mci_type, int nr, - int (**fn_set_input)(struct dvb_frontend *, int)); + int (**fn_set_input)(struct dvb_frontend *fe, int input)); #endif /* _DDBRIDGE_MCI_H_ */ |