From e72334b74423f08f91e02481b99eeec3fb17e08b Mon Sep 17 00:00:00 2001 From: Michael Rubin Date: Thu, 17 Apr 2025 00:45:20 +0000 Subject: [PATCH] staging: gpib: gpib_ioctl: u8 over uint8_t Reported by checkpatch.pl. CHECK: Prefer kernel type 'u8' over 'uint8_t' Signed-off-by: Michael Rubin Link: https://lore.kernel.org/r/20250417004533.86765-2-matchstick@neverthere.org Signed-off-by: Greg Kroah-Hartman --- drivers/staging/gpib/uapi/gpib_ioctl.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/gpib/uapi/gpib_ioctl.h b/drivers/staging/gpib/uapi/gpib_ioctl.h index e903ec1fe2742..2d2a268d85739 100644 --- a/drivers/staging/gpib/uapi/gpib_ioctl.h +++ b/drivers/staging/gpib/uapi/gpib_ioctl.h @@ -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), -- 2.50.1