aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/parport.h
diff options
context:
space:
mode:
authorJoel Granados <j.granados@samsung.com>2023-05-23 14:22:13 +0200
committerLuis Chamberlain <mcgrof@kernel.org>2023-05-23 21:43:25 -0700
commit7c0bf4dad6bf44eef4a573985dd053de77688df1 (patch)
tree58ad847ecf675d174d5020da88795e0452fa000a /include/linux/parport.h
parentLinux 6.4-rc2 (diff)
downloadwireguard-linux-7c0bf4dad6bf44eef4a573985dd053de77688df1.tar.xz
wireguard-linux-7c0bf4dad6bf44eef4a573985dd053de77688df1.zip
parport: Move magic number "15" to a define
Put the size of a parport name behind a define so we can use it in other files. This is a preparation patch to be able to use this size in parport/procfs.c. Signed-off-by: Joel Granados <j.granados@samsung.com> Reviewed-by: Luis Chamberlain <mcgrof@kernel.org> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'include/linux/parport.h')
-rw-r--r--include/linux/parport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/parport.h b/include/linux/parport.h
index a0bc9e0267b7..243c82d7f852 100644
--- a/include/linux/parport.h
+++ b/include/linux/parport.h
@@ -180,6 +180,8 @@ struct ieee1284_info {
struct semaphore irq;
};
+#define PARPORT_NAME_MAX_LEN 15
+
/* A parallel port */
struct parport {
unsigned long base; /* base address */