staging: gpib: gpib_ioctl: u8 over uint8_t
authorMichael Rubin <matchstick@neverthere.org>
Thu, 17 Apr 2025 00:45:20 +0000 (00:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Apr 2025 09:11:35 +0000 (11:11 +0200)
Reported by checkpatch.pl.

CHECK: Prefer kernel type 'u8' over 'uint8_t'

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

index e903ec1fe27427536ce1cc5fbf6a3168e8f388ec..2d2a268d85739e9ba0e8c7a111629ae9fdb5bd65 100644 (file)
@@ -39,7 +39,7 @@ struct gpib_close_dev_ioctl {
 struct gpib_serial_poll_ioctl {
        unsigned int pad;
        int sad;
-       uint8_t status_byte;
+       __u8 status_byte;
 };
 
 struct gpib_eos_ioctl {
@@ -87,7 +87,7 @@ struct gpib_select_pci_ioctl {
 };
 
 struct gpib_ppoll_config_ioctl {
-       uint8_t config;
+       __u8 config;
        unsigned set_ist : 1;
        unsigned clear_ist : 1;
 };
@@ -109,7 +109,7 @@ struct gpib_select_device_path_ioctl {
 
 // update status byte and request service
 struct gpib_request_service2 {
-       uint8_t status_byte;
+       __u8 status_byte;
        int new_reason_for_service;
 };
 
@@ -121,7 +121,7 @@ enum gpib_ioctl {
        IBOPENDEV = _IOWR(GPIB_CODE, 3, struct gpib_open_dev_ioctl),
        IBCLOSEDEV = _IOW(GPIB_CODE, 4, struct gpib_close_dev_ioctl),
        IBWAIT = _IOWR(GPIB_CODE, 5, struct gpib_wait_ioctl),
-       IBRPP = _IOWR(GPIB_CODE, 6, uint8_t),
+       IBRPP = _IOWR(GPIB_CODE, 6, __u8),
 
        IBSIC = _IOW(GPIB_CODE, 9, unsigned int),
        IBSRE = _IOW(GPIB_CODE, 10, int),
@@ -133,7 +133,7 @@ enum gpib_ioctl {
        IBTMO = _IOW(GPIB_CODE, 17, unsigned int),
        IBRSP = _IOWR(GPIB_CODE, 18, struct gpib_serial_poll_ioctl),
        IBEOS = _IOW(GPIB_CODE, 19, struct gpib_eos_ioctl),
-       IBRSV = _IOW(GPIB_CODE, 20, uint8_t),
+       IBRSV = _IOW(GPIB_CODE, 20, __u8),
        CFCBASE = _IOW(GPIB_CODE, 21, uint64_t),
        CFCIRQ = _IOW(GPIB_CODE, 22, unsigned int),
        CFCDMA = _IOW(GPIB_CODE, 23, unsigned int),