hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/include/linux/parport.h
....@@ -325,18 +325,10 @@
325325 unsigned int flags;
326326 };
327327
328
-/* parport_register_device declares that a device is connected to a
329
- port, and tells the kernel all it needs to know.
330
- - pf is the preemption function (may be NULL for no callback)
331
- - kf is the wake-up function (may be NULL for no callback)
332
- - irq_func is the interrupt handler (may be NULL for no interrupts)
333
- - handle is a user pointer that gets handed to callback functions. */
334
-struct pardevice *parport_register_device(struct parport *port,
335
- const char *name,
336
- int (*pf)(void *), void (*kf)(void *),
337
- void (*irq_func)(void *),
338
- int flags, void *handle);
339
-
328
+/*
329
+ * parport_register_dev_model declares that a device is connected to a
330
+ * port, and tells the kernel all it needs to know.
331
+ */
340332 struct pardevice *
341333 parport_register_dev_model(struct parport *port, const char *name,
342334 const struct pardev_cb *par_dev_cb, int cnt);
....@@ -460,6 +452,7 @@
460452 void *, size_t, int);
461453
462454 /* IEEE1284.3 functions */
455
+#define daisy_dev_name "Device ID probe"
463456 extern int parport_daisy_init (struct parport *port);
464457 extern void parport_daisy_fini (struct parport *port);
465458 extern struct pardevice *parport_open (int devnum, const char *name);