aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/parport.h
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2020-04-03 14:43:23 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-23 17:05:39 +0200
commit6824f0ce38cb4b903a3cbf00dd528861f6c2ea7c (patch)
tree16088a1aafe8e0399bd2c3ec5362c6f0993310c5 /include/linux/parport.h
parentparport: Standardize use of printmode (diff)
downloadwireguard-linux-6824f0ce38cb4b903a3cbf00dd528861f6c2ea7c.tar.xz
wireguard-linux-6824f0ce38cb4b903a3cbf00dd528861f6c2ea7c.zip
parport: Add comments for parport_register_dev_model()
In preparation to remove parport_register_device(), copy the comments to parport_register_dev_model() and modify the parameters according to what parport_register_dev_model() has. Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Link: https://lore.kernel.org/r/20200403134325.11523-9-sudipm.mukherjee@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/parport.h')
-rw-r--r--include/linux/parport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/parport.h b/include/linux/parport.h
index 13932ce8b37b..36a0f6270238 100644
--- a/include/linux/parport.h
+++ b/include/linux/parport.h
@@ -337,6 +337,10 @@ struct pardevice *parport_register_device(struct parport *port,
void (*irq_func)(void *),
int flags, void *handle);
+/*
+ * parport_register_dev_model declares that a device is connected to a
+ * port, and tells the kernel all it needs to know.
+ */
struct pardevice *
parport_register_dev_model(struct parport *port, const char *name,
const struct pardev_cb *par_dev_cb, int cnt);