summaryrefslogtreecommitdiff
path: root/include/uapi/linux/fd.h
diff options
context:
space:
mode:
authorDenis Efremov <efremov@linux.com>2020-05-01 16:44:14 +0300
committerDenis Efremov <efremov@linux.com>2020-05-12 19:34:56 +0300
commit9c4c5a24c85585fb8904bd2872501cd8181b3854 (patch)
tree8c380d989762ff49269299c2ad877c6c1929c8bd /include/uapi/linux/fd.h
parent29ac67633c893dec0024fb7597860fde52fdc819 (diff)
downloadlinux-9c4c5a24c85585fb8904bd2872501cd8181b3854.tar.xz
floppy: add FD_AUTODETECT_SIZE define for struct floppy_drive_params
Use FD_AUTODETECT_SIZE for autodetect buffer size in struct floppy_drive_params instead of a magic number. Link: https://lore.kernel.org/r/20200501134416.72248-3-efremov@linux.com Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Denis Efremov <efremov@linux.com>
Diffstat (limited to 'include/uapi/linux/fd.h')
-rw-r--r--include/uapi/linux/fd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/uapi/linux/fd.h b/include/uapi/linux/fd.h
index 90fb94712c41..3f6b7be4c096 100644
--- a/include/uapi/linux/fd.h
+++ b/include/uapi/linux/fd.h
@@ -172,7 +172,10 @@ struct floppy_drive_params {
* used in succession to try to read the disk. If the FDC cannot lock onto
* the disk, the next format is tried. This uses the variable 'probing'.
*/
- short autodetect[8]; /* autodetected formats */
+
+#define FD_AUTODETECT_SIZE 8
+
+ short autodetect[FD_AUTODETECT_SIZE]; /* autodetected formats */
int checkfreq; /* how often should the drive be checked for disk
* changes */