From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (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 CC1891E521A for ; Thu, 17 Apr 2025 00:45:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850756; cv=none; b=o1+Z9LU/oi9a/KJ8Xfc3uouW1P8ZvyTA/Dop2+/dG9JtVzkSAfhvJzLIgGHioF5lOXVwLq/SAUCEBdgQ64LeBRcl/cJhT35NDNFssyUTvpU5vPnOp4fbHYVMC16jyf9W1oy2jgZ45/w5h/bWQpXA6QKCUYsM2WSiMNuR7DjqB98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850756; c=relaxed/simple; bh=fYsvzXlBg63Ifhk+KNPCOiQkv/56x0+I1RDaP7FG//4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rlB9WMIQRfrBl/ooSPzB+VHGX31ulZVU2PPTD8F6JEyQPV5+yikd7UKBwLZaMxzpYuy+BuOSUyPzJzsxLNLiKPG3CmwpjeyVffDd+iTINCHjCgCW9/31BUIPmLMghF7xpZvL0YcwQ+IBC+Fhg7nstk1sSYxBEKWW1XmEaU0JKEg= 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=XFB7y/UV; arc=none smtp.client-ip=209.85.210.170 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="XFB7y/UV" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-7399838db7fso246514b3a.0 for ; Wed, 16 Apr 2025 17:45:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverthere.org; s=google; t=1744850754; x=1745455554; darn=lists.linux.dev; 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=xCBQK1D7ftGWqyhzo3vdXyAI8mTZHY6bLe9FdeFPrbc=; b=XFB7y/UVBkiSERDadV+4E8YplH6gG1YTRnhApRWuz5Sr8ncI/fuk+lPGtXTqUhqsHI 3oE6Nbh7yKvfAgZxVZzdC78a69FrnuLhTRcFWgyDH1/ZcJ5S7luPdwbN6c+0thq2rDb3 mQizVMjKutwno2nmzybt1s+p5+P0PNpudC+VUKwdeC1SHOJiVmEs1N0cc0b0uTQ4GrNz DxsxW+pt6KXBsHZjEjTJBUztcJPjhtsi2e90d2qDkUqNp57FTnYs/HsXJjjn7CsyLyCB XEcr+1ZD7daN2OZVZL2k96vWQQuVVS3uBw7USruChh2PDXR+Gumt2sEMfVw4ioCL07RQ ZdCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744850754; x=1745455554; 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=xCBQK1D7ftGWqyhzo3vdXyAI8mTZHY6bLe9FdeFPrbc=; b=cDb1wGdxMNsXqFhw7OspNYHzykuIh7Y2TWOGQ84aEXeznedTODs1XdMK2iXZQIO5jM auXPn1mAZrHCvgoMNMOzf/9iXzY2VAUhZihZlxIxv7CklpcJduMC0Wsk+4r6WhAeMxpo J+Uhd7mLrb3AoKcoVKGXw+oHU6BX7HeXPIvAdkPrGEY8mt1e1EC/p6XJjc4Wzr2AQSLu HwUKvUkwCSuTxEHd4RkFs0LA7ZAK0g5enWIGBi8N9cQKAJBZNLHbFehciuAq+DWFO2F3 GPG4wehlYfjw3jcVdqpYknkWvVSyOlOJfX+Gzgox7fnybjSQW7irQ6fvdF7IMAcHdyN8 9UVA== X-Gm-Message-State: AOJu0Yz/rLIKflLLJJ1LzsBXH6NqsFeX8gMiFoEyBQZKWb8/DEt7TwNL mkE0yDqFqQt9gDLDfBMPXRkZj2agKkR9CogpO73y3PNdVoCNaiClhOjVjx5xKw== X-Gm-Gg: ASbGncsbYNKcY+BMACtSC3fjEOaNN9H6Ey89mHxPrivvW224KiCxQhM8RSWfgdJVXg7 4Of47BEmcj6ejGXO2dFjS14B4dXw9TOMzR1775vHHFHCsptuM7HIgIwoUPgqCwDCMtZ6wakpbYR oHNys3ZXNAlTB2S5rst3V3w784qVupibrCbReU6XE0vibuIUvh9jaMgAHkodliySq8dGcfri9DB 5kWuhdbCFnmd+mnNd24MvC5xRfskL43myfJwTwt7s0LcEjPmn2CceyTyCSwfg2JBOdCX2yXg809 ECXj5HLC/rU9gRzEC2ZkuH+CEjSYvurt/xOX/vZgbYVtulitgFVsKBn1AX4bkeflubBlF+WVTNT 8oYTMpQ== X-Google-Smtp-Source: AGHT+IE5d2cYcaqmHR1uGy2fSlz8Xvu+yT8MbmWw+3sV5rUZZCWh2SmRKaB6XFrRMYzc4D6DFHDzhA== X-Received: by 2002:a05:6a00:98a:b0:732:5875:eb95 with SMTP id d2e1a72fcca58-73cdbf14228mr1405113b3a.4.1744850754029; Wed, 16 Apr 2025 17:45:54 -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 d2e1a72fcca58-73bd219894bsm11148251b3a.34.2025.04.16.17.45.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 17:45:53 -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 v2 14/14] staging: gpib: tnt4882: u8 over uint8_t Date: Thu, 17 Apr 2025 00:45:33 +0000 Message-ID: <20250417004533.86765-15-matchstick@neverthere.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250417004533.86765-1-matchstick@neverthere.org> References: <20250417004533.86765-1-matchstick@neverthere.org> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev 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/tnt4882/tnt4882_gpib.c | 28 ++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/gpib/tnt4882/tnt4882_gpib.c b/drivers/staging/gpib/tnt4882/tnt4882_gpib.c index d26a388912c9..9f7f8b311da3 100644 --- a/drivers/staging/gpib/tnt4882/tnt4882_gpib.c +++ b/drivers/staging/gpib/tnt4882/tnt4882_gpib.c @@ -236,7 +236,7 @@ static int fifo_xfer_done(struct tnt4882_priv *tnt_priv) return retval; } -static int drain_fifo_words(struct tnt4882_priv *tnt_priv, uint8_t *buffer, int num_bytes) +static int drain_fifo_words(struct tnt4882_priv *tnt_priv, u8 *buffer, int num_bytes) { int count = 0; struct nec7210_priv *nec_priv = &tnt_priv->nec7210_priv; @@ -275,7 +275,7 @@ static void tnt4882_release_holdoff(struct gpib_board *board, struct tnt4882_pri } } -static int tnt4882_accel_read(struct gpib_board *board, uint8_t *buffer, size_t length, int *end, +static int tnt4882_accel_read(struct gpib_board *board, u8 *buffer, size_t length, int *end, size_t *bytes_read) { size_t count = 0; @@ -450,7 +450,7 @@ static int write_wait(struct gpib_board *board, struct tnt4882_priv *tnt_priv, return 0; } -static int generic_write(struct gpib_board *board, uint8_t *buffer, size_t length, +static int generic_write(struct gpib_board *board, u8 *buffer, size_t length, int send_eoi, int send_commands, size_t *bytes_written) { size_t count = 0; @@ -542,13 +542,13 @@ static int generic_write(struct gpib_board *board, uint8_t *buffer, size_t lengt return retval; } -static int tnt4882_accel_write(struct gpib_board *board, uint8_t *buffer, +static int tnt4882_accel_write(struct gpib_board *board, u8 *buffer, size_t length, int send_eoi, size_t *bytes_written) { return generic_write(board, buffer, length, send_eoi, 0, bytes_written); } -static int tnt4882_command(struct gpib_board *board, uint8_t *buffer, size_t length, +static int tnt4882_command(struct gpib_board *board, u8 *buffer, size_t length, size_t *bytes_written) { return generic_write(board, buffer, length, 0, 1, bytes_written); @@ -595,7 +595,7 @@ static irqreturn_t tnt4882_interrupt(int irq, void *arg) } // wrappers for interface functions -static int tnt4882_read(struct gpib_board *board, uint8_t *buffer, size_t length, int *end, +static int tnt4882_read(struct gpib_board *board, u8 *buffer, size_t length, int *end, size_t *bytes_read) { struct tnt4882_priv *priv = board->private_data; @@ -615,7 +615,7 @@ static int tnt4882_read(struct gpib_board *board, uint8_t *buffer, size_t length return retval; } -static int tnt4882_write(struct gpib_board *board, uint8_t *buffer, size_t length, int send_eoi, +static int tnt4882_write(struct gpib_board *board, u8 *buffer, size_t length, int send_eoi, size_t *bytes_written) { struct tnt4882_priv *priv = board->private_data; @@ -623,7 +623,7 @@ static int tnt4882_write(struct gpib_board *board, uint8_t *buffer, size_t lengt return nec7210_write(board, &priv->nec7210_priv, buffer, length, send_eoi, bytes_written); } -static int tnt4882_command_unaccel(struct gpib_board *board, uint8_t *buffer, +static int tnt4882_command_unaccel(struct gpib_board *board, u8 *buffer, size_t length, size_t *bytes_written) { struct tnt4882_priv *priv = board->private_data; @@ -674,7 +674,7 @@ static void tnt4882_remote_enable(struct gpib_board *board, int enable) nec7210_remote_enable(board, &priv->nec7210_priv, enable); } -static int tnt4882_enable_eos(struct gpib_board *board, uint8_t eos_byte, int compare_8_bits) +static int tnt4882_enable_eos(struct gpib_board *board, u8 eos_byte, int compare_8_bits) { struct tnt4882_priv *priv = board->private_data; @@ -721,7 +721,7 @@ static int tnt4882_secondary_address(struct gpib_board *board, unsigned int addr return nec7210_secondary_address(board, &priv->nec7210_priv, address, enable); } -static int tnt4882_parallel_poll(struct gpib_board *board, uint8_t *result) +static int tnt4882_parallel_poll(struct gpib_board *board, u8 *result) { struct tnt4882_priv *tnt_priv = board->private_data; @@ -738,7 +738,7 @@ static int tnt4882_parallel_poll(struct gpib_board *board, uint8_t *result) } } -static void tnt4882_parallel_poll_configure(struct gpib_board *board, uint8_t config) +static void tnt4882_parallel_poll_configure(struct gpib_board *board, u8 config) { struct tnt4882_priv *priv = board->private_data; @@ -767,14 +767,14 @@ static void tnt4882_parallel_poll_response(struct gpib_board *board, int ist) * this is just used by the old nec7210 isa interfaces, the newer * boards use tnt4882_serial_poll_response2 */ -static void tnt4882_serial_poll_response(struct gpib_board *board, uint8_t status) +static void tnt4882_serial_poll_response(struct gpib_board *board, u8 status) { struct tnt4882_priv *priv = board->private_data; nec7210_serial_poll_response(board, &priv->nec7210_priv, status); } -static void tnt4882_serial_poll_response2(struct gpib_board *board, uint8_t status, +static void tnt4882_serial_poll_response2(struct gpib_board *board, u8 status, int new_reason_for_service) { struct tnt4882_priv *priv = board->private_data; @@ -810,7 +810,7 @@ static void tnt4882_serial_poll_response2(struct gpib_board *board, uint8_t stat spin_unlock_irqrestore(&board->spinlock, flags); } -static uint8_t tnt4882_serial_poll_status(struct gpib_board *board) +static u8 tnt4882_serial_poll_status(struct gpib_board *board) { struct tnt4882_priv *priv = board->private_data; -- 2.43.0