parport: daisy: avoid hardcoded name
The daisy device name is hardcoded, define it in the header file and use it in the code. Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Link: https://lore.kernel.org/r/20191016144540.18810-1-sudipm.mukherjee@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
45a2d64696
commit
c059d57996
@@ -460,6 +460,7 @@ extern size_t parport_ieee1284_epp_read_addr (struct parport *,
|
||||
void *, size_t, int);
|
||||
|
||||
/* IEEE1284.3 functions */
|
||||
#define daisy_dev_name "Device ID probe"
|
||||
extern int parport_daisy_init (struct parport *port);
|
||||
extern void parport_daisy_fini (struct parport *port);
|
||||
extern struct pardevice *parport_open (int devnum, const char *name);
|
||||
|
Reference in New Issue
Block a user