staging: gpib: t1_delay_ioctl_t now unsigned int
authorMichael Rubin <matchstick@neverthere.org>
Wed, 9 Apr 2025 05:59:01 +0000 (05:59 +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 t1_delay_ioctl_t with type
unsigned int.

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-20-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 41f4015babf76612c21d527dd0e557e81e65457e..baf530e251c923cbf5f5538f274551f3f4df403e 100644 (file)
@@ -1984,7 +1984,7 @@ static int request_system_control_ioctl(struct gpib_board *board, unsigned long
 
 static int t1_delay_ioctl(struct gpib_board *board, unsigned long arg)
 {
-       t1_delay_ioctl_t cmd;
+       unsigned int cmd;
        unsigned int delay;
        int retval;
 
index c3d82b6272100a49e2a844d8bc657bf3ed0fefcf..0403e285eed43b3f0d8b96cece4e282a2888b394 100644 (file)
@@ -107,7 +107,6 @@ struct gpib_select_device_path_ioctl {
        char device_path[0x1000];
 };
 
-typedef unsigned int t1_delay_ioctl_t;
 typedef short autospoll_ioctl_t;
 typedef short local_ppoll_mode_ioctl_t;
 
@@ -152,7 +151,7 @@ enum gpib_ioctl {
        IBSELECT_PCI = _IOWR(GPIB_CODE, 32, struct gpib_select_pci_ioctl),
        IBEVENT = _IOR(GPIB_CODE, 33, short),
        IBRSC = _IOW(GPIB_CODE, 34, int),
-       IB_T1_DELAY = _IOW(GPIB_CODE, 35, t1_delay_ioctl_t),
+       IB_T1_DELAY = _IOW(GPIB_CODE, 35, unsigned int),
        IBLOC = _IO(GPIB_CODE, 36),
 
        IBAUTOSPOLL = _IOW(GPIB_CODE, 38, autospoll_ioctl_t),