From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE43227781B for ; Wed, 9 Apr 2025 18:10:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744222205; cv=none; b=TdRnNPiYkHrek6Gv0Q15HoWfD1FqcY8O1scmOiIewepy9cAJ0TErNTh7ybsvsuApMiJo5NbEjS4lPBuIUQaGH2TLYGUJOAkVHoWVZiGJr+sn1arQBsAm4jj186rj0RjM40fil7emThIfAbvklGuF6ckNe4RccJoYVgCtko3EB38= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744222205; c=relaxed/simple; bh=WKGQLQ8uKnhMI9EH4e62lLojaDPqj+X/W5fvspV/Zag=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FmGxLKfEH7+JIKOv+593SVNSUxXDIwQYGcusRJp/ZeNdpjzMPW408WOBXKSmW0Q2yKyeop+kF3cBHQLakWO487NVIrseMxqc+nDHTe3CUmujHoPDZI/WqS/NJQitu/I52C3zp2odPXSwStkNJWvWLuyiRIicWNVIypPN5Ed4uEI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=neverthere.org; spf=pass smtp.mailfrom=neverthere.org; dkim=pass (2048-bit key) header.d=neverthere.org header.i=@neverthere.org header.b=clOg6rWj; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=neverthere.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=neverthere.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=neverthere.org header.i=@neverthere.org header.b="clOg6rWj" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-224100e9a5cso77726125ad.2 for ; Wed, 09 Apr 2025 11:10:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverthere.org; s=google; t=1744222203; x=1744827003; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=86UnuWjYlTVxrrkzcrJNMvzVNwopMkwh2WAJusAycOM=; b=clOg6rWjstxK/ZoLtA5HPpruX0LDwvcosv1Aa1aeh8JD9pdk/Syc4gT/sVOsen83VV e8iljvWOML1Z10Vw91UhJBfXAju6+jhYdH48wf8r4GI2kyyHQMjOTgltxV/No1SMaqXo xODtHthxlebqXWJyub5G6QWLykbgetxfBb8OmiRi6ssiTwLj3diVabsdH67CI9NqRPJF QJz09yUKGgDO/X7VtifispkbnJzdraum0GT9OgtDt9hKMy5r3fegQRHw9dWX7Tq0lHLV yuEq1I/ijIQijylnOBfHW3Sbz+fUjwT9QK4pQBjmvpsYfmCMEkl6OsCVaIGgX1r3Dfmx eVIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744222203; x=1744827003; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=86UnuWjYlTVxrrkzcrJNMvzVNwopMkwh2WAJusAycOM=; b=nD/XehHt3J4Vv5R2doVIKaaL702H4vOdgXq4UzYy9MJWc+fmOAvy2XoDeCkur4FUy0 XiSsyEc5l8hE0fUb1Xn/54BJt2TtdNRyk0sGrvJIt0L7ROnAhe/laqyn+OscV83ZM975 fq3au7sRk3tczQO4bXJo7G3X+9y1qASDJDk3gJ4e4fco8sW0w8ojlE1ARK25HqNGRgqG U1GVg/WuEjfMyQYOgIE0EKWNWJhqBLYmoiY/mntGvnI5ljNTRdojCaE74taIper8720V 89FJ6eRmDDSWW1IX9tboLt/THL/heUCSqqk5UMLAIgurT42JSjwcjK5fnGSenhd0j5Uk zv1w== X-Forwarded-Encrypted: i=1; AJvYcCXXzrbni8OpiH+iQuEa1ewlgoDzqnvhMBrheOo0/oLKR5YVcI9aFsUcunyKEAcSJwig8CrF/DDyR391Q4U=@vger.kernel.org X-Gm-Message-State: AOJu0YwA6LMv8BBkdN4Y/fvmXbDFMXYhQsvXpndQTrZBHuKXCg1IYxr3 sAO+0kgaINuMt3yHSoy5dNV1MsK72g8sNmyoHJxvY4a4PmbSONRZiPMRIoNnNw== X-Gm-Gg: ASbGncvnFB2A+CuQMxU/jwqwgl31A/992ymvinvEeFbSLgc6bbg7H0MZj4JY/40HYPb yRANpS7+OOZkUJdK1NhQak31rfzqdB2CfzW6qfrBJ5vq5SOxTuaxHMCwp0lJVH6/RQYb4Q2hK6r 6kIOMOWO5nYaqFqrtI3s2QCPEQWVj0WtvXv14bcpYreS/6OapRR30QTxhztJfLrFqLkK8VZ07F7 vhbZqWiYykRd/R3uhiegRvVYzw75OcfKazvwhmdFMvz5rhQS3TmsN5OTOUPX3TatsVj7952Ooli j+PGyXtnPClMt9w0bGskfKx5eufcSKeHTILKGHL6HCx8tmULf2MTvf8l+Z+Oc9bSJfD5Xtz5iFd ysAr4Eg== X-Google-Smtp-Source: AGHT+IG8qkF1Uw8XmcGYr33JHXfRWW6q2cGV/crwzmUUNsSH5c23+zVKIM1PSePYQVCLBSS9MHxSTA== X-Received: by 2002:a17:902:f683:b0:21f:4649:fd49 with SMTP id d9443c01a7336-22ac2c3446fmr53950415ad.49.1744222202870; Wed, 09 Apr 2025 11:10:02 -0700 (PDT) Received: from tiamat (c-69-181-214-135.hsd1.ca.comcast.net. [69.181.214.135]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22ac7cbdfe7sm15168405ad.207.2025.04.09.11.10.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Apr 2025 11:10:02 -0700 (PDT) From: Michael Rubin To: gregkh@linuxfoundation.org, dpenkler@gmail.com, dan.carpenter@linaro.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Rubin Subject: [PATCH v1 06/23] staging: gpib: gpib_types: u8 over uint8_t Date: Wed, 9 Apr 2025 18:09:36 +0000 Message-ID: <20250409180953.398686-7-matchstick@neverthere.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250409180953.398686-1-matchstick@neverthere.org> References: <20250409180953.398686-1-matchstick@neverthere.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Reported by checkpatch.pl. CHECK: Prefer kernel type 'u8' over 'uint8_t' Signed-off-by: Michael Rubin --- drivers/staging/gpib/include/gpib_types.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/gpib/include/gpib_types.h b/drivers/staging/gpib/include/gpib_types.h index 0dbe45894884..62ce174add85 100644 --- a/drivers/staging/gpib/include/gpib_types.h +++ b/drivers/staging/gpib/include/gpib_types.h @@ -67,19 +67,19 @@ struct gpib_interface { * return indicates error. * nbytes returns number of bytes read */ - int (*read)(struct gpib_board *board, uint8_t *buffer, size_t length, int *end, + int (*read)(struct gpib_board *board, u8 *buffer, size_t length, int *end, size_t *bytes_read); /* write() should write 'length' bytes from buffer to the bus. * If the boolean value send_eoi is nonzero, then EOI should * be sent along with the last byte. Returns number of bytes * written or negative value on error. */ - int (*write)(struct gpib_board *board, uint8_t *buffer, size_t length, int send_eoi, + int (*write)(struct gpib_board *board, u8 *buffer, size_t length, int send_eoi, size_t *bytes_written); /* command() writes the command bytes in 'buffer' to the bus * Returns zero on success or negative value on error. */ - int (*command)(struct gpib_board *board, uint8_t *buffer, size_t length, + int (*command)(struct gpib_board *board, u8 *buffer, size_t length, size_t *bytes_written); /* Take control (assert ATN). If 'asyncronous' is nonzero, take * control asyncronously (assert ATN immediately without waiting @@ -106,13 +106,13 @@ struct gpib_interface { * with the eos bytes. Otherwise only the 7 least significant * bits are compared. */ - int (*enable_eos)(struct gpib_board *board, uint8_t eos, int compare_8_bits); + int (*enable_eos)(struct gpib_board *board, u8 eos, int compare_8_bits); /* disable END on eos byte (END on EOI only)*/ void (*disable_eos)(struct gpib_board *board); /* configure parallel poll */ - void (*parallel_poll_configure)(struct gpib_board *board, uint8_t configuration); + void (*parallel_poll_configure)(struct gpib_board *board, u8 configuration); /* conduct parallel poll */ - int (*parallel_poll)(struct gpib_board *board, uint8_t *result); + int (*parallel_poll)(struct gpib_board *board, u8 *result); /* set/clear ist (individual status bit) */ void (*parallel_poll_response)(struct gpib_board *board, int ist); /* select local parallel poll configuration mode PP2 versus remote PP1 */ @@ -148,7 +148,7 @@ struct gpib_interface { * by IEEE 488.2 section 11.3.3.4.3 "Allowed Coupled Control of * STB, reqt, and reqf". */ - void (*serial_poll_response)(struct gpib_board *board, uint8_t status_byte); + void (*serial_poll_response)(struct gpib_board *board, u8 status_byte); /* Sets the byte the board should send in response to a serial poll. * This function should also request service via IEEE 488.2 reqt/reqf * based on MSS (bit 6 of the status_byte) and new_reason_for_service. @@ -163,11 +163,11 @@ struct gpib_interface { * If this method is left NULL by the driver, then the user library * function ibrsv2 will not work. */ - void (*serial_poll_response2)(struct gpib_board *board, uint8_t status_byte, + void (*serial_poll_response2)(struct gpib_board *board, u8 status_byte, int new_reason_for_service); /* returns the byte the board will send in response to a serial poll. */ - uint8_t (*serial_poll_status)(struct gpib_board *board); + u8 (*serial_poll_status)(struct gpib_board *board); /* adjust T1 delay */ int (*t1_delay)(struct gpib_board *board, unsigned int nano_sec); /* go to local mode */ -- 2.43.0