staging: gpib: event_ioctl_t now short
authorMichael Rubin <matchstick@neverthere.org>
Wed, 9 Apr 2025 05:58:59 +0000 (05:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2025 14:46:09 +0000 (16:46 +0200)
Using Linux code style to replace typedef event_ioctl_t with type short.

Adhering to Linux code style.

Reported by checkpatch.pl

WARNING: do not add new typedefs

Signed-off-by: Michael Rubin <matchstick@neverthere.org>
Link: https://lore.kernel.org/r/20250409055903.321438-18-matchstick@neverthere.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/common/gpib_os.c
drivers/staging/gpib/uapi/gpib_ioctl.h

index 6cad9e1879faaadc3666bbc1226be72edbfc83ae..05c3ebf027a3c4024219493ea1ce8a9d0bfd4d3a 100644 (file)
@@ -1951,7 +1951,7 @@ int pop_gpib_event(struct gpib_board *board, struct gpib_event_queue *queue, sho
 
 static int event_ioctl(struct gpib_board *board, unsigned long arg)
 {
-       event_ioctl_t user_event;
+       short user_event;
        int retval;
        short event;
 
index eea169a0ba4071eea72912116a59c9c6f98d42d5..e9baa6724fb473d2b29fc8f989535c8f0d9bc80d 100644 (file)
@@ -107,7 +107,6 @@ struct gpib_select_device_path_ioctl {
        char device_path[0x1000];
 };
 
-typedef short event_ioctl_t;
 typedef int rsc_ioctl_t;
 typedef unsigned int t1_delay_ioctl_t;
 typedef short autospoll_ioctl_t;
@@ -152,7 +151,7 @@ enum gpib_ioctl {
 
        IBQUERY_BOARD_RSV = _IOR(GPIB_CODE, 31, int),
        IBSELECT_PCI = _IOWR(GPIB_CODE, 32, struct gpib_select_pci_ioctl),
-       IBEVENT = _IOR(GPIB_CODE, 33, event_ioctl_t),
+       IBEVENT = _IOR(GPIB_CODE, 33, short),
        IBRSC = _IOW(GPIB_CODE, 34, rsc_ioctl_t),
        IB_T1_DELAY = _IOW(GPIB_CODE, 35, t1_delay_ioctl_t),
        IBLOC = _IO(GPIB_CODE, 36),