From nobody Tue Dec 16 09:29:37 2025 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 0C17219066D for ; Thu, 17 Apr 2025 00:45:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850743; cv=none; b=DJO43f3RKIrzjiFQcSdDJnwjLTJ/1rEEfrDjVkt5qlgQZagcwunnB84ELMoM5AlelexLU70x8zi2nYL2mk2q7JjJDRVqDVJsrZt715aG0Avn/VIm8irqJIBV6fZqrKPhn2hzIqWO6Sf+Kg8NVlw8S2tCU1DoqaI0BT0zalkhgyw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850743; c=relaxed/simple; bh=Z/9PFyrUgpPd5rVWjXXudWLnGwRK1lzpWznXRZ2vt5Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XbhuNvbYhzKv0yiNKNe7COICFmNUncmOtr7kxXonSM2LFPdih6KSy0+mZz0/2qtguxDRaq0ixqhrsIckp4n1/b51rfE0drtUL728ohB0SnG3FIwq1fumU1ydj+Ns7p7sPJope9Wv9f/TmbT+MDmX+Sks+0HSt0inKLTJTg1u6X0= 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=dNgwpwux; arc=none smtp.client-ip=209.85.210.181 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="dNgwpwux" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-7398d65476eso208487b3a.1 for ; Wed, 16 Apr 2025 17:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverthere.org; s=google; t=1744850741; x=1745455541; 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=sqFta0OAs/A1Mf1ccmkajj8vrVujNWivC2RzSA3YSm8=; b=dNgwpwuxNY3s0ti91ffsZBkOC29/Cf1y0ryJOnlLB3jznGh7tTR0tRDXqMqrDguI/B 1bwKcbInA6eTwXeO6UcOzZedwRAhUXCwpiwulEVBzgVxEVpewssoZa05udYyPWb+tzjB bsyMoH/yg4ULooaUAtfhuuzj4C6jHx28PuqVMSDino3yFtPXE5FrAHEhoHs+rkJrjhsY tm+IzhP+Gn7Z78iVoTreB7Q+St64UJgUArdkr/WNdShSEh5Zoyoyn9jH0faoLWqLnup5 WZAAQcUSkjpeSLD4VTnIAds/M+G4FxLHV0ScH9F4uAuPCPy4kFaRoZhFutilqCbLqWdG uIqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744850741; x=1745455541; 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=sqFta0OAs/A1Mf1ccmkajj8vrVujNWivC2RzSA3YSm8=; b=H2qwhmQ9jreIqmgC5lyRECgApBmrCUgUQw14BJL6NV4+W0QOV5SKhl6IxnQ5hGlPVx C60e71YAHtasFvBhhM3SaBNtZgFax2C26m9N+IZQfBsLuez1qqA0p+Qrdfy861ONVWg7 y4GENrqZbDNU0AwHVzJ2V3D273CcaTBcrKFqTa6hzm+ZPemXJhIRw7x2dxXtacDiI496 x7E1WtvLXVK088D9DkmSxSdWmNob99T4I+14D40YS27kviZjmgc6FoyN6sMPQrSRaPp0 CaoBkEP6zbaLkTsMrWmEhEob2nb3g+sqJxqc9wST/VImmsbgNZL9lh7IRLhN30V7UoaM O1ag== X-Forwarded-Encrypted: i=1; AJvYcCWyJCw/p70iygAYG+n499TPOnGzTMB5vsaS8w5O3xzVub0WZhhd8vdztPfm7djDzDpPEG4QugX5GHJxq10=@vger.kernel.org X-Gm-Message-State: AOJu0Yw5XqmAPRpktHM/3z6buxrpEU8nSF8pI5jyeYtgVMgZhTMKjrTP RG0J6l1I4keWiUI+fLyvWJhZAQK0UFCFEB20uj3iqBgU4p0IhUkS7bU3O5SmSA== X-Gm-Gg: ASbGnculp1SrLdW82JOcL4HojSpHBkzRryassTWG3+QUTSbUGOPzeNjmUpHS6HPEykz g9MFEJzWXzRWu+KZmoVmcPOGG6N8va5QbdxuPLXCc3+d4JAlPqD9550kCQtI5EsSrwf3r1mc6jQ VUspx127qOpGgyK+OwSghV9jX6z9FjmdhJ9ESeVesQ3tMp/cD2wrzS8Z55Li74zV8YdBc/4IFtU h6q07Hbt10JXSO/Z2Uutsjm+I99mkIVR/fUhxNjQusEL2fEb1EtwnUqsQ4buBJt+rYE7jWTWnvZ kWkhbgel+NoidV2R0QcZsSdAlJxVhoV0NwbgzW8Z7dfVGZVrgh8m2+DPs+u0Z9+4F8SQdQeP1VG LVpLklJ/Q2ouBN+wR X-Google-Smtp-Source: AGHT+IFm2kd2Ns0/xVrxZ+SqxY9+nr2Ab80jlqyfZwd1KviJlz3p5qt0eS4Y/Do95MMFvROpfOcjcg== X-Received: by 2002:a05:6a00:ac9:b0:736:491b:5370 with SMTP id d2e1a72fcca58-73cf2ab2469mr1184689b3a.10.1744850741229; Wed, 16 Apr 2025 17:45:41 -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-73bd21c388fsm11493824b3a.54.2025.04.16.17.45.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 17:45:41 -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 03/14] staging: gpib: agilent_82350b: u8 over uint8_t Date: Thu, 17 Apr 2025 00:45:22 +0000 Message-ID: <20250417004533.86765-4-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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Reported by checkpatch.pl. CHECK: Prefer kernel type 'u8' over 'uint8_t' Signed-off-by: Michael Rubin --- .../gpib/agilent_82350b/agilent_82350b.c | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/gpib/agilent_82350b/agilent_82350b.c b/drivers= /staging/gpib/agilent_82350b/agilent_82350b.c index 901f7182502b..ce9c88a2b9f5 100644 --- a/drivers/staging/gpib/agilent_82350b/agilent_82350b.c +++ b/drivers/staging/gpib/agilent_82350b/agilent_82350b.c @@ -27,10 +27,10 @@ MODULE_DESCRIPTION("GPIB driver for Agilent 82350b"); static int read_transfer_counter(struct agilent_82350b_priv *a_priv); static unsigned short read_and_clear_event_status(struct gpib_board *board= ); static void set_transfer_counter(struct agilent_82350b_priv *a_priv, int c= ount); -static int agilent_82350b_write(struct gpib_board *board, uint8_t *buffer, +static int agilent_82350b_write(struct gpib_board *board, u8 *buffer, size_t length, int send_eoi, size_t *bytes_written); =20 -static int agilent_82350b_accel_read(struct gpib_board *board, uint8_t *bu= ffer, +static int agilent_82350b_accel_read(struct gpib_board *board, u8 *buffer, size_t length, int *end, size_t *bytes_read) =20 { @@ -145,7 +145,7 @@ static int translate_wait_return_value(struct gpib_boar= d *board, int retval) return 0; } =20 -static int agilent_82350b_accel_write(struct gpib_board *board, uint8_t *b= uffer, +static int agilent_82350b_accel_write(struct gpib_board *board, u8 *buffer, size_t length, int send_eoi, size_t *bytes_written) { @@ -297,7 +297,7 @@ static void set_transfer_counter(struct agilent_82350b_= priv *a_priv, int count) } =20 // wrappers for interface functions -static int agilent_82350b_read(struct gpib_board *board, uint8_t *buffer, +static int agilent_82350b_read(struct gpib_board *board, u8 *buffer, size_t length, int *end, size_t *bytes_read) { struct agilent_82350b_priv *priv =3D board->private_data; @@ -305,7 +305,7 @@ static int agilent_82350b_read(struct gpib_board *board= , uint8_t *buffer, return tms9914_read(board, &priv->tms9914_priv, buffer, length, end, byte= s_read); } =20 -static int agilent_82350b_write(struct gpib_board *board, uint8_t *buffer, +static int agilent_82350b_write(struct gpib_board *board, u8 *buffer, size_t length, int send_eoi, size_t *bytes_written) =20 { @@ -314,7 +314,7 @@ static int agilent_82350b_write(struct gpib_board *boar= d, uint8_t *buffer, return tms9914_write(board, &priv->tms9914_priv, buffer, length, send_eoi= , bytes_written); } =20 -static int agilent_82350b_command(struct gpib_board *board, uint8_t *buffe= r, +static int agilent_82350b_command(struct gpib_board *board, u8 *buffer, size_t length, size_t *bytes_written) =20 { @@ -373,7 +373,7 @@ static void agilent_82350b_remote_enable(struct gpib_bo= ard *board, int enable) tms9914_remote_enable(board, &priv->tms9914_priv, enable); } =20 -static int agilent_82350b_enable_eos(struct gpib_board *board, uint8_t eos= _byte, +static int agilent_82350b_enable_eos(struct gpib_board *board, u8 eos_byte, int compare_8_bits) { struct agilent_82350b_priv *priv =3D board->private_data; @@ -412,7 +412,7 @@ static int agilent_82350b_secondary_address(struct gpib= _board *board, return tms9914_secondary_address(board, &priv->tms9914_priv, address, ena= ble); } =20 -static int agilent_82350b_parallel_poll(struct gpib_board *board, uint8_t = *result) +static int agilent_82350b_parallel_poll(struct gpib_board *board, u8 *resu= lt) { struct agilent_82350b_priv *priv =3D board->private_data; =20 @@ -420,7 +420,7 @@ static int agilent_82350b_parallel_poll(struct gpib_boa= rd *board, uint8_t *resul } =20 static void agilent_82350b_parallel_poll_configure(struct gpib_board *boar= d, - uint8_t config) + u8 config) { struct agilent_82350b_priv *priv =3D board->private_data; =20 @@ -434,14 +434,14 @@ static void agilent_82350b_parallel_poll_response(str= uct gpib_board *board, int tms9914_parallel_poll_response(board, &priv->tms9914_priv, ist); } =20 -static void agilent_82350b_serial_poll_response(struct gpib_board *board, = uint8_t status) +static void agilent_82350b_serial_poll_response(struct gpib_board *board, = u8 status) { struct agilent_82350b_priv *priv =3D board->private_data; =20 tms9914_serial_poll_response(board, &priv->tms9914_priv, status); } =20 -static uint8_t agilent_82350b_serial_poll_status(struct gpib_board *board) +static u8 agilent_82350b_serial_poll_status(struct gpib_board *board) { struct agilent_82350b_priv *priv =3D board->private_data; =20 --=20 2.43.0