media: ddbridge/mci: add identifiers to function definition arguments
authorDaniel Scheller <d.scheller@gmx.net>
Wed, 9 May 2018 20:08:01 +0000 (16:08 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 28 May 2018 21:44:22 +0000 (17:44 -0400)
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>
drivers/media/pci/ddbridge/ddbridge-mci.c
drivers/media/pci/ddbridge/ddbridge-mci.h

index 8d9592e75ad5800f32adc99f276a1edbbf85ec7b..4ac634fc96e432e306b2fbf9419d016bab78c5f1 100644 (file)
@@ -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;
index 453dcb9f8208fc400eb3b8ed32fe8b45ad4adb74..209cc2b92dff0799ec62336ea8ff2cd7bf70843c 100644 (file)
@@ -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_ */