staging: gpib: autospoll_ioctl_t now short
authorMichael Rubin <matchstick@neverthere.org>
Wed, 9 Apr 2025 05:59:02 +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 autospoll_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-21-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 baf530e251c923cbf5f5538f274551f3f4df403e..f90cc818227857bc480ef63b950ed08c6fe6a585 100644 (file)
@@ -1600,7 +1600,7 @@ static int dma_ioctl(struct gpib_board_config *config, unsigned long arg)
 static int autospoll_ioctl(struct gpib_board *board, struct gpib_file_private *file_priv,
                           unsigned long arg)
 {
-       autospoll_ioctl_t enable;
+       short enable;
        int retval;
        struct gpib_descriptor *desc;
 
index 0403e285eed43b3f0d8b96cece4e282a2888b394..c66b8d59a46b8469bd323f5f853ed2391afe5bb8 100644 (file)
@@ -107,7 +107,6 @@ struct gpib_select_device_path_ioctl {
        char device_path[0x1000];
 };
 
-typedef short autospoll_ioctl_t;
 typedef short local_ppoll_mode_ioctl_t;
 
 // update status byte and request service
@@ -154,7 +153,7 @@ enum gpib_ioctl {
        IB_T1_DELAY = _IOW(GPIB_CODE, 35, unsigned int),
        IBLOC = _IO(GPIB_CODE, 36),
 
-       IBAUTOSPOLL = _IOW(GPIB_CODE, 38, autospoll_ioctl_t),
+       IBAUTOSPOLL = _IOW(GPIB_CODE, 38, short),
        IBONL = _IOW(GPIB_CODE, 39, struct gpib_online_ioctl),
        IBPP2_SET = _IOW(GPIB_CODE, 40, local_ppoll_mode_ioctl_t),
        IBPP2_GET = _IOR(GPIB_CODE, 41, local_ppoll_mode_ioctl_t),