From nobody Tue Dec 16 00:22:12 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 34C672B9BB for ; Thu, 17 Apr 2025 00:45:38 +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=1744850741; cv=none; b=AQJL9jwK2yiFI2sG9Gqc/tx1Q/CqyDacqSZjYHX9LF5HVaegtvLI0BzPnlF9IsyafJ3JfNlXAUMpxSCajpSpKlcMlawbYbP9Z6R29LUp2wtY0DMOWd0pe+fvX5a7Eo8RbHX4PzoyIR9FgriI/m+xZVF69neQ76jLrvQsbWuMrz4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850741; c=relaxed/simple; bh=3aL+YmiC+SS2Eb9QJHfwgiTSyIEZCDR+E6UJpe0GC8w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Q6ARM2H6rV1gVkbLZd8UxX+9+KHW64cYbgMMSnTv1Ul8ieEhDJUW2D1AceO8CzYP6ZntuOY7a9G09S1y2jm0BDVUe66uXMlxsCUxeZqxnTx4tFo6905y0Vd5z9sYB/qxQ5GO6I56bBmHoBIlzcS8fglHmy9/emy/QsiVNU7U3Vw= 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=iVIrIPN7; 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="iVIrIPN7" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-7369ce5d323so138797b3a.1 for ; Wed, 16 Apr 2025 17:45:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverthere.org; s=google; t=1744850738; x=1745455538; 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=CkTqioEDhh+jPgNizGJ1BGNiQAOUU2HAAFBf1hjLXTw=; b=iVIrIPN75aV/2wJ6qyHVYqkGtcJ+Al+H4lGxA8aPCojj6yF24i01nkb5q0clWsMGJU 8FD1WSp+7HMSaX74hDplXiLmFsHEn5TkSFsB7ZFAzEoyvUayohsdKVOsqGD/MUSVWN44 p/A9ZOFywOgd0iq12kpJTtuqjr1YKh3bve8XkD4GuKhx/naKwWkrCOvz9HBA7cJVUEyG Ems1gF57EHSGrVByx3ShKG2mMkBG/D1PUXSof5Fkyfl2JznE2piSc64cJofDnVYa2FYY ZhVICHlbrjQFPYwhp15dIvEF33HdBdvjkg+dTyg1cBaR/GofAjL7mLefn2vqlsagdYgD 59tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744850738; x=1745455538; 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=CkTqioEDhh+jPgNizGJ1BGNiQAOUU2HAAFBf1hjLXTw=; b=UDbHzzPizMBSbmLEYP8HPGx8rrQs2EhDGZZ2yvlHkeJ5GDay2N9cF2vrvgIKV6IqQq JIuNrZ4/dKjqUNd8MIaWv38pxhB7n8HNZYVMokutvD21d2puOqv9+wztwXagqSGyYQNc A68h527HuZDQD7Iwe3dCLK8DA8flixE6H900JsM28nu+g0BAgEfPPbrzxaz3RVA6QNDR AKrxMrIuJCjF2yXzbFeiCJP6CodRboD9VuU4KMaoMGHCuVarvKdy2f1jkIs24q8NhPLu YPoLbR2dXHDBaoXsEzAW6x7r1is6RKhbLEfnCPBDyY8wU1Skeu4/4a8gKz8lQPfNVZZ0 ufAA== X-Forwarded-Encrypted: i=1; AJvYcCVUmOAUYPAqAQ5o8AMZHzMwOZbMwEOJzxxhDctd+VTwFBeKBYjRFOmIfzpVN8k9yE6M5RnpMDLJfn2bB+I=@vger.kernel.org X-Gm-Message-State: AOJu0YxRFI/kHlEtf71EaoOttRekIubdmLWjXR8azfcFCnYHi3TyloMs tUm2zXERYJwsN/S7NiMiMsrHJ8v0SU3pypiMW68M/wVx9vvJPc/Lg+sHAKy/3g== X-Gm-Gg: ASbGncvEqrsO67+i9/5lTm58cvBTjVuig3nU0lt7KM6ASCz1JgFJ73gb4qu3bz24HBG /32yqGalMlFodXj3tUZ8hxzSmk7xnLbGW/Oj9iYvMToulO39NrxG/B/YT/m0s0ZllPmkwz9Cdjo l1n1egnRxiU4x3rE27dxUd3Im3KDwjTk7n0lxWOeEiAksJ0pusMp1UPn5WFJjvjttUkcsLGm/pg e7FP/bLte0fWz0xuji7LQ3NrnMLBACR2fsqsxOQR9DiynW9/pcAOaJGKN0LwgzFXpHruFP/TkLD 5IrOGu/GmjUcNqEx2LFdY4N81b8hFtTvnv42g3XY/c3IRhGxlvZIU4iVgtjfAvPNiB7pOevPCqx U/+5z2w== X-Google-Smtp-Source: AGHT+IG5VFKI1/oUFDSbQtBRp63712CBVsmMPFE97cVbpHoI0iyWGDIaBksLAgKcyTM2pnFkSyJsFQ== X-Received: by 2002:a05:6a21:3513:b0:1f5:67c2:e3e9 with SMTP id adf61e73a8af0-203b3fbba0bmr5886084637.29.1744850738494; Wed, 16 Apr 2025 17:45:38 -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-73bd21c3263sm11126118b3a.38.2025.04.16.17.45.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 17:45:38 -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 01/14] staging: gpib: gpib_ioctl: u8 over uint8_t Date: Thu, 17 Apr 2025 00:45:20 +0000 Message-ID: <20250417004533.86765-2-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 --- 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 e903ec1fe274..2d2a268d8573 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; }; =20 struct gpib_eos_ioctl { @@ -87,7 +87,7 @@ struct gpib_select_pci_ioctl { }; =20 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 { =20 // update status byte and request service struct gpib_request_service2 { - uint8_t status_byte; + __u8 status_byte; int new_reason_for_service; }; =20 @@ -121,7 +121,7 @@ enum gpib_ioctl { IBOPENDEV =3D _IOWR(GPIB_CODE, 3, struct gpib_open_dev_ioctl), IBCLOSEDEV =3D _IOW(GPIB_CODE, 4, struct gpib_close_dev_ioctl), IBWAIT =3D _IOWR(GPIB_CODE, 5, struct gpib_wait_ioctl), - IBRPP =3D _IOWR(GPIB_CODE, 6, uint8_t), + IBRPP =3D _IOWR(GPIB_CODE, 6, __u8), =20 IBSIC =3D _IOW(GPIB_CODE, 9, unsigned int), IBSRE =3D _IOW(GPIB_CODE, 10, int), @@ -133,7 +133,7 @@ enum gpib_ioctl { IBTMO =3D _IOW(GPIB_CODE, 17, unsigned int), IBRSP =3D _IOWR(GPIB_CODE, 18, struct gpib_serial_poll_ioctl), IBEOS =3D _IOW(GPIB_CODE, 19, struct gpib_eos_ioctl), - IBRSV =3D _IOW(GPIB_CODE, 20, uint8_t), + IBRSV =3D _IOW(GPIB_CODE, 20, __u8), CFCBASE =3D _IOW(GPIB_CODE, 21, uint64_t), CFCIRQ =3D _IOW(GPIB_CODE, 22, unsigned int), CFCDMA =3D _IOW(GPIB_CODE, 23, unsigned int), --=20 2.43.0 From nobody Tue Dec 16 00:22:12 2025 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 E9EFE185935 for ; Thu, 17 Apr 2025 00:45:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850742; cv=none; b=Ht5ucsNFuP2bjn/L06Hp9s7onTnWw1sR9QpBy8EzIXxBjnST5ZBmlj4uX2qwlMuuVTB9ycf3mh1wPPIrIjs2A1GIdiU3GWW1NO5zcMsqk7gBAD9kIfArG11K/BddOebXr4RvuqB+0z14cj7FePBCpCVbeEqkKN9nhJtxydPbb9s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850742; c=relaxed/simple; bh=rObqEDHrBe/jAWMZ0h4xesD6j8eo5/oyrdSAY1bb5QU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KFkcpS+InU8vUNSht9S/QmgTQEYhfx8XwvydSYx06rxUSr4mprSiGK0WSMSOnb7htirxVbvEvSt17tZdu6lZgO2sxR3zXi+gj+FgHDBtQ4flnnutd1z20+rf/U0pU1ALN5/jggRqBCbd1RdSM3W3pSCUNBF7u8/8Kx+acqA1Kxs= 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=NgDTsFJ3; arc=none smtp.client-ip=209.85.214.178 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="NgDTsFJ3" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-224171d6826so3845225ad.3 for ; Wed, 16 Apr 2025 17:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverthere.org; s=google; t=1744850740; x=1745455540; 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=Xbx6JupUwv+LRM3RBwYRlbHNbCFfGcJo2p6nMmB6hME=; b=NgDTsFJ3y/aFaupGDFnDommEPyIdalDd+fPV4GGciU5mSxtvSVm0qfuYhJl+7anb0T 17Dz1OnJnZR3SmnmMKyC7belTvzUGZGAsUrvM1R5VXuHSUrG9LEcFWLPf7MrpM1SjhUz zHh596M+s+i+P9ml7wN2fhRTEHmZDA/w1Ja12GTdOqmASbAs7tbW3nGbj6CAc4QAeLfN p5yOO0EVANwgeNXNoZFoG4GWG1R5nhfN1CLb535ofmhQHkOJQbYPGqE3eohO7NGbAKKs bpXvJgiA+NZTzEJjVkIQxiKoutcvQKkAn9KZbcQ+gXpy25mqvGM+ou965qyvNwRD+wR/ f2sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744850740; x=1745455540; 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=Xbx6JupUwv+LRM3RBwYRlbHNbCFfGcJo2p6nMmB6hME=; b=ShrsAfkiQTFGux+4Oi0DONWN0mAFE/hYGu77MfzdpYLS8FwX4OlCDP0KnOdEHOMHhc 311eRpgRNKdSdFVAxB/wloSDQxOxVQMhZRNakym9MqBQIspmZdT/aqRTq+B1oUUTn0SY 8dH5IXGeMlO2Mh2PJ265EVklaHNVEo6U48RaxC/JXj0/n3rvzcucbKtBJdNbrULumnXs OQ4RmcNhpsJ8fNcLKk11lATGj3+UERGPu9qH9HUtF6TZw9Yn4UFk+YCAlJtf6hDvS3Td q+coHjSrdZkCRrYY5JwU3ooMNSvxhquurtikwCWVGzUcySWETM0QMuIYbFuTTkUECU9a EARw== X-Forwarded-Encrypted: i=1; AJvYcCWRgwlXNBgQ+wwapZn1zPce6L/evv5IiKLN0R4dV/Uo7xoJ+WryvXa8cGRJo2iZpKKbq7L0mwBCqALrppw=@vger.kernel.org X-Gm-Message-State: AOJu0Yw5mhdHqTytw5vW6uAR6GOqX2UjdTUCN1voR157KXbmJ8qFXwPa y3vWZANC6V7VLsD853ohFAS9350Kb2q6c5HrzCzeqLCcevh2OufPCOF1nJ9tWg== X-Gm-Gg: ASbGncufSLS0rK2Z5I270Kx8sQ/jRZtsBMYkB5QaxfGFReq69cQFeU12i3y7lJT6ea6 HERgJeraqdWNtZsa6RGZkPiXLydfeB/aYmoCQxfOCv+U6X6sgv62YUk548xw+m/hV+J3w1Pld9F LIdHxiD8sO3u6R373k0c/FI7f60Vt9byWoEgHCSGt0CnvYsrGO0Dpn+NdzE/T7YAaN3fFIrqMZ8 hxA+GFy1NaRBfAditT5uWw42rpvuZTNkLbgn2sInI4u1G71y0qpINGlM0LherA83/cto1xIxv2n ppmHwTXHBLTSJb3y9Iz1xgwurNdezpYIhXDCjtRqtmNQsF0wrwQqidRwH4WwRmqTcS3FkmpeOYq fWBV5XQ== X-Google-Smtp-Source: AGHT+IF0YXGqSmFJvRIqGI65Tnqvm7pmkcoFE5ShlFAH+CCj95TpqtmaCBWbFEaDM18PVqURmIb43w== X-Received: by 2002:a17:902:cecf:b0:223:fabd:4f76 with SMTP id d9443c01a7336-22c35917410mr54024025ad.30.1744850740114; Wed, 16 Apr 2025 17:45:40 -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-22c33fcc04dsm20952405ad.200.2025.04.16.17.45.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 17:45:39 -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 02/14] staging: gpib: gpib_user: u8 over uint8_t Date: Thu, 17 Apr 2025 00:45:21 +0000 Message-ID: <20250417004533.86765-3-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 --- drivers/staging/gpib/uapi/gpib_user.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/gpib/uapi/gpib_user.h b/drivers/staging/gpib/u= api/gpib_user.h index 58b996a8bd7f..eaf7399a164a 100644 --- a/drivers/staging/gpib/uapi/gpib_user.h +++ b/drivers/staging/gpib/uapi/gpib_user.h @@ -166,24 +166,24 @@ static inline unsigned int gpib_address_restrict(unsi= gned int addr) return addr; } =20 -static inline uint8_t MLA(unsigned int addr) +static inline __u8 MLA(unsigned int addr) { return gpib_address_restrict(addr) | LAD; } =20 -static inline uint8_t MTA(unsigned int addr) +static inline __u8 MTA(unsigned int addr) { return gpib_address_restrict(addr) | TAD; } =20 -static inline uint8_t MSA(unsigned int addr) +static inline __u8 MSA(unsigned int addr) { return gpib_address_restrict(addr) | SAD; } =20 -static inline uint8_t PPE_byte(unsigned int dio_line, int sense) +static inline __u8 PPE_byte(unsigned int dio_line, int sense) { - uint8_t cmd; + __u8 cmd; =20 cmd =3D PPE; if (sense) @@ -192,7 +192,7 @@ static inline uint8_t PPE_byte(unsigned int dio_line, i= nt sense) return cmd; } =20 -static inline uint8_t CFGn(unsigned int meters) +static inline __u8 CFGn(unsigned int meters) { return 0x6 | (meters & 0xf); } @@ -202,37 +202,37 @@ enum { gpib_command_mask =3D 0x7f, }; =20 -static inline int is_PPE(uint8_t command) +static inline int is_PPE(__u8 command) { return (command & 0x70) =3D=3D 0x60; } =20 -static inline int is_PPD(uint8_t command) +static inline int is_PPD(__u8 command) { return (command & 0x70) =3D=3D 0x70; } =20 -static inline int in_addressed_command_group(uint8_t command) +static inline int in_addressed_command_group(__u8 command) { return (command & 0x70) =3D=3D 0x0; } =20 -static inline int in_universal_command_group(uint8_t command) +static inline int in_universal_command_group(__u8 command) { return (command & 0x70) =3D=3D 0x10; } =20 -static inline int in_listen_address_group(uint8_t command) +static inline int in_listen_address_group(__u8 command) { return (command & 0x60) =3D=3D 0x20; } =20 -static inline int in_talk_address_group(uint8_t command) +static inline int in_talk_address_group(__u8 command) { return (command & 0x60) =3D=3D 0x40; } =20 -static inline int in_primary_command_group(uint8_t command) +static inline int in_primary_command_group(__u8 command) { return in_addressed_command_group(command) || in_universal_command_group(command) || --=20 2.43.0 From nobody Tue Dec 16 00:22:12 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 From nobody Tue Dec 16 00:22:12 2025 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (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 7395819F13B for ; Thu, 17 Apr 2025 00:45:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850745; cv=none; b=KT8gV2/ePOZp7Bv7M576dcazf2eqH+HY1DYs+yc4CLTGbepykLHPbPwbbLi2v1Dg41GH2eUq3iGHQw+00Kktlv4a601fM08MgStqHhMBDC8s0h0nUAO6nFt54Kc2hWbL1Fj+a1hQ6gLNRp+xWRris2/pH+ys2BJjz5Rve8s+JM0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850745; c=relaxed/simple; bh=QqdmVMBjXXestRT/55c3oFFTQMW4oNH6hU5VCPGmLuk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P8UWPbLsGw+trLl5DjTYaOj+DY9JMN3ocjmZYKrrKhWRtuKlbg4F3Oh0yN6pxVQ5vminWweS5zydNXpirAGgRGcELeloGEVVkCtSnYViaF0iGy9bMXogvLKARZCrDbljVPfDbvV7iQUP3mdHRNiXZuvrtnxVonUCLcCBu+tHwhI= 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=lBEIOzP4; arc=none smtp.client-ip=209.85.216.52 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="lBEIOzP4" Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-301918a4e1bso135858a91.1 for ; Wed, 16 Apr 2025 17:45:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverthere.org; s=google; t=1744850742; x=1745455542; 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=egaRPgkryN6OirBXQ08+dhGZADpQp/3XvoNDYXE4JHk=; b=lBEIOzP4PKCDmrpp/3ZhRKTymMUY1V1wQ/xdYzegSXzzzPvucHmcgr9XIJTbGl8S5/ 9prTRWz8U/VI16e1JNd+5JaJax4+yPw4QDQuSQrU3HdxbM+vBS4qB67z4IjowbJv0TGM o0oaQ+MnBEKU9CKm1G9AcxvArvPi9ptqAwm4JJrk3AghP66MwM/r3aPlCSgSMRzAlZz1 fS6Oi8xc18v4P1/4YNpZDyA1gI+XWmUnd8ZRih8sNds8LhSARRPyuE4th6BhZpItBP3x tvuFGNY8ns6MBz64SSfA4ICp51qXsH4qtHGoCsDsJUfV9tne8F4mKungnu5YfGUzWxJx i4BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744850742; x=1745455542; 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=egaRPgkryN6OirBXQ08+dhGZADpQp/3XvoNDYXE4JHk=; b=uN2YSHp8Ruz7s4aCMDSOWPO33EUHxx3HW7k1VfgQFkKBEepKaKrkJDmcAg+LhSD+H5 DHKK/GNCCP+ExT2B00tNWTbbAnA4G7E3nBOVY9SeJT9sSoHPtYIu5PWEPdFCyRP00cWF Rf9KiqWA6Ya9faB9hH2Kh2K18K6XMvbXkdkIR4YGmQDIUid6FMRqCAqeuQNcPtzvI0HE DZm83gm56wAZPznOkqCP2t7nrB3rxi2btRcWRiF+7n9CySwImIiwDzHhyg/XxBxjrHCT ZHWhfr6wqAV14oDXEfpddm+NPvHSfA4I3StQ4hsMJI4WNme8HCytBoVQ00EFuBhyIYqd S1xg== X-Forwarded-Encrypted: i=1; AJvYcCUySdj9GQt8SUMsOJZR9N70lsJ9abUqdahk8haey3VSneUDU4cOxDjRel+b+9BPXJbkwAPcR/yxGoXtD38=@vger.kernel.org X-Gm-Message-State: AOJu0YzjAq+abaVAT6eKvr/6tKXvZ8OS/GDjug8KYIpV6uMpM6TXs12s pIgClxnGMUcPe1D+Lc1DLTYIfyNrkN5zdCIybBhUyYyt6qEbz/LBS8JVWmQxHw== X-Gm-Gg: ASbGnctxkKZ9K1eBCl0RaeqYfSqfkv8gKJPko4VHFHi198IezCHRjAHI+5kwTwxm4Ce p/b/69agPTwMfhlAHeUFt5PJcT0ueHZi5bJnzKfcaEfL79VzuQs8Eiv4X/6NO2eNB6+B+Cdzzt3 X/WzhNNpw6B7iGADwE5Df4PH1zzAk/Vm+M5HnzUKKcwjtkfur/Ss23NHYAHb3Jp6n2tpsLXP3AW 3MbMZ4/EhBo7cYaljetoqwz8Ze6T5oEvyHSqelzecuietbXHrXduCRdqo7bPrjLbcRl7jee4i7D DgPaPhr24bCTQ/qlDOtQlzX/xueUShMrzayFHCSCj7Z5wk/8qmnKUAV03UiwPJp/th+6Nk3G4Fa aKZ8ysw== X-Google-Smtp-Source: AGHT+IGuVcnz7+jXBqgLq07oqsDUI4UA6qz+jFAUX9R+nmD0RiWXV8pcR7xhwsWukjR3XaIYG8fMJA== X-Received: by 2002:a17:90b:3c0c:b0:2fe:7fea:ca34 with SMTP id 98e67ed59e1d1-308641725d2mr4923711a91.32.1744850742509; Wed, 16 Apr 2025 17:45:42 -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 98e67ed59e1d1-308611ef37asm2310367a91.11.2025.04.16.17.45.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 17:45:42 -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 04/14] staging: gpib: agilent_82357a: u8 over uint8_t Date: Thu, 17 Apr 2025 00:45:23 +0000 Message-ID: <20250417004533.86765-5-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_82357a/agilent_82357a.c | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/gpib/agilent_82357a/agilent_82357a.c b/drivers= /staging/gpib/agilent_82357a/agilent_82357a.c index 9e41fe611264..4728ec85caa8 100644 --- a/drivers/staging/gpib/agilent_82357a/agilent_82357a.c +++ b/drivers/staging/gpib/agilent_82357a/agilent_82357a.c @@ -420,10 +420,10 @@ static int agilent_82357a_abort(struct agilent_82357a= _priv *a_priv, int flush) } =20 // interface functions -int agilent_82357a_command(struct gpib_board *board, uint8_t *buffer, size= _t length, +int agilent_82357a_command(struct gpib_board *board, u8 *buffer, size_t le= ngth, size_t *bytes_written); =20 -static int agilent_82357a_read(struct gpib_board *board, uint8_t *buffer, = size_t length, int *end, +static int agilent_82357a_read(struct gpib_board *board, u8 *buffer, size_= t length, int *end, size_t *nbytes) { int retval; @@ -536,7 +536,7 @@ static int agilent_82357a_read(struct gpib_board *board= , uint8_t *buffer, size_t } =20 static ssize_t agilent_82357a_generic_write(struct gpib_board *board, - uint8_t *buffer, size_t length, + u8 *buffer, size_t length, int send_commands, int send_eoi, size_t *bytes_written) { @@ -676,13 +676,13 @@ static ssize_t agilent_82357a_generic_write(struct gp= ib_board *board, return 0; } =20 -static int agilent_82357a_write(struct gpib_board *board, uint8_t *buffer, +static int agilent_82357a_write(struct gpib_board *board, u8 *buffer, size_t length, int send_eoi, size_t *bytes_written) { return agilent_82357a_generic_write(board, buffer, length, 0, send_eoi, b= ytes_written); } =20 -int agilent_82357a_command(struct gpib_board *board, uint8_t *buffer, size= _t length, +int agilent_82357a_command(struct gpib_board *board, u8 *buffer, size_t le= ngth, size_t *bytes_written) { return agilent_82357a_generic_write(board, buffer, length, 1, 0, bytes_wr= itten); @@ -834,7 +834,7 @@ static void agilent_82357a_remote_enable(struct gpib_bo= ard *board, int enable) return;// 0; } =20 -static int agilent_82357a_enable_eos(struct gpib_board *board, uint8_t eos= _byte, +static int agilent_82357a_enable_eos(struct gpib_board *board, u8 eos_byte, int compare_8_bits) { struct agilent_82357a_priv *a_priv =3D board->private_data; @@ -948,7 +948,7 @@ static int agilent_82357a_secondary_address(struct gpib= _board *board, return 0; } =20 -static int agilent_82357a_parallel_poll(struct gpib_board *board, uint8_t = *result) +static int agilent_82357a_parallel_poll(struct gpib_board *board, u8 *resu= lt) { struct agilent_82357a_priv *a_priv =3D board->private_data; struct usb_device *usb_dev; @@ -990,7 +990,7 @@ static int agilent_82357a_parallel_poll(struct gpib_boa= rd *board, uint8_t *resul return 0; } =20 -static void agilent_82357a_parallel_poll_configure(struct gpib_board *boar= d, uint8_t config) +static void agilent_82357a_parallel_poll_configure(struct gpib_board *boar= d, u8 config) { //board can only be system controller return;// 0; @@ -1002,13 +1002,13 @@ static void agilent_82357a_parallel_poll_response(s= truct gpib_board *board, int return;// 0; } =20 -static void agilent_82357a_serial_poll_response(struct gpib_board *board, = uint8_t status) +static void agilent_82357a_serial_poll_response(struct gpib_board *board, = u8 status) { //board can only be system controller return;// 0; } =20 -static uint8_t agilent_82357a_serial_poll_status(struct gpib_board *board) +static u8 agilent_82357a_serial_poll_status(struct gpib_board *board) { //board can only be system controller return 0; --=20 2.43.0 From nobody Tue Dec 16 00:22:12 2025 Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) (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 6655B1A841B for ; Thu, 17 Apr 2025 00:45:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850745; cv=none; b=nfxeR6ro/OgdHYKw8NrA3UKtNsAaO/b9B+9lFOJyve859qqKiWUdtIoJovXpcOLZ3z6sZ4W35+3SAwLLINw9j1alhzRDjWfv69ZPNlBLu1IzqArKqC070CgaO3LBuNkmlM5OVWrZSdMGVf9GcS8NHU6d2iye6EaRdnu9ZlmtzTY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850745; c=relaxed/simple; bh=iWVSSf+TpSw8Rneoj2znRVsY2B7CQDvvXidmWGGapFU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BXEzZUm6Fb8hhsXlssDuiAyR8/tyoQDkANAdpcluzlwOe9sn5ErjTQIlxzYM3TlnzZt5vdWuu4u362MRhYR1DM04iZMGcJazivH/KAl4vZ/zKO1L1hbxXAaHg4o8sl6qRWFZ5Gn4sCLt6T4JH8y5Z5F4jmNKM5YyFN+QqdjdkHY= 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=RGscWTV9; arc=none smtp.client-ip=209.85.215.173 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="RGscWTV9" Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-af28bc68846so168670a12.1 for ; Wed, 16 Apr 2025 17:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverthere.org; s=google; t=1744850744; x=1745455544; 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=Zs3nmp6bNInwEcGoHF3GJbe7f1ZKHiGtLyO1UFwX8eI=; b=RGscWTV9qy3037j5morjL4i/4pBesZBnDQlNObMrYK0Pb5JUBxQ+VzlkPuASnejgf7 rIXaKv0uAs6M4UCIVfy9RX6oAy/pWttJ1o/zCHxOJeoDFBOhhrij3nOBxdvFJRPvkCzd 5t51vXJFgk6LUdgB0+gstqHn6C0xMslUeJDX+4z/8YdlJwwEdbjHdOLF4KXDAUfVLQ4n vs8BKG7AKr3m4CROfJw8JDsEepqzbLMaqwcLOfkNFgjjCyYdFKCyqFy4xIQmIb8lFqzo 3htnqYuxZuZFH3452xI2uDHj9IkRnQ0INdylut4/NnO11MZVIYKd2+/v5R/jPgc+0cQz EGcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744850744; x=1745455544; 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=Zs3nmp6bNInwEcGoHF3GJbe7f1ZKHiGtLyO1UFwX8eI=; b=mHUuA4k8xMUqUGcVtUnRRVYPRoTIqWRTO4dhrK4dii2eD07JdsAIPdcN9qnhybbHEG r/SBT32dcMS8UWi3X6iXRasfymWF1B7TFvFY1IBzzSkGHl/A/7br2gv6yBvGbF/TLC2t ocF+Co6r/KHTdd79yErR3xBvSMJWhlH06kw4nuB3/G29qJW1lVaGhm0h56U2SO7HSBf8 wGPSxVKjj+s7E1e6uEeDcndKOltvd+/agth8mjHb7Ksvn6TvtDfAK1HDFKm8Hd+9/gZY OZtxfvd9tQN60d048mtLb9FuhSLtHI34FiTKFKO2xdkrzBMUvTmC5pEf1jzIpgpzL5WA AtIQ== X-Forwarded-Encrypted: i=1; AJvYcCXCln1eJFaRP+5kSwjcNyq3AhmSwGySRbUPf5WBTvGMXw/RUuD6ECzvK+4D32uNICc8JBNPicrN5wbfwpg=@vger.kernel.org X-Gm-Message-State: AOJu0YyDlIw1nZ26Z6SAlJyVotmPUTEPCQk6Bv0B+rvvhwaDZa//Dq1D 2WRQEFwEmIcmnP6O4ihYdOX8yC9jUW5XqcjlNSF/N+UQEIo78jCMyG4psOOVmHK74RSAcEpHRFU = X-Gm-Gg: ASbGncsU4sIOzQIvJq9wpAkkEpfZx4aw5lCd8RWJmyj69iayY7TM+D89PZRsXXKytq6 9tMCqME0HBbrJbcbUv1lAw4vu/8ieEuHUgleAbJ1GD3z0lMV7cO2+/+TnTFKj2gbz5gPmX4q73G W2SUFksCFvOOvKt9js/gHrBnd1crBZHpftUGQV134bNngGOwACAUAZuXATZRoczd2chgks9ukuW rghJSKSOg/rOpnqQ0EBF054X5JwLxHyX5Rb3pLqnvOVJeYH9UUKJSeH7GiFOIX7qvmS3ZVyq6J/ kwCyDJ0kUtk1A7BbL+VhJjZZ+pkdBgW600XaIPnL8sz+Dr0K6KGMxqNAWRwDKiZRzgNrSpbW1Pd Wypx/Tw== X-Google-Smtp-Source: AGHT+IEYNueiE3luc8qMrFrdGYAYawhzOBpu4NBs+ZVADOQuSYHRpkJHJm1C/3UpgRm3wnl83uuhZw== X-Received: by 2002:a17:903:98f:b0:21f:164d:93fe with SMTP id d9443c01a7336-22c35990b8amr69624635ad.53.1744850743664; Wed, 16 Apr 2025 17:45:43 -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 98e67ed59e1d1-308611d8c64sm2319526a91.9.2025.04.16.17.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 17:45:43 -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 05/14] staging: gpib: cec: u8 over uint8_t Date: Thu, 17 Apr 2025 00:45:24 +0000 Message-ID: <20250417004533.86765-6-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 --- drivers/staging/gpib/cec/cec_gpib.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/gpib/cec/cec_gpib.c b/drivers/staging/gpib/cec= /cec_gpib.c index 1b02222881b9..737d78736ea5 100644 --- a/drivers/staging/gpib/cec/cec_gpib.c +++ b/drivers/staging/gpib/cec/cec_gpib.c @@ -45,7 +45,7 @@ static int cec_pci_attach(struct gpib_board *board, const= struct gpib_board_conf static void cec_pci_detach(struct gpib_board *board); =20 // wrappers for interface functions -static int cec_read(struct gpib_board *board, uint8_t *buffer, size_t leng= th, int *end, +static int cec_read(struct gpib_board *board, u8 *buffer, size_t length, i= nt *end, size_t *bytes_read) { struct cec_priv *priv =3D board->private_data; @@ -53,7 +53,7 @@ static int cec_read(struct gpib_board *board, uint8_t *bu= ffer, size_t length, in return nec7210_read(board, &priv->nec7210_priv, buffer, length, end, byte= s_read); } =20 -static int cec_write(struct gpib_board *board, uint8_t *buffer, size_t len= gth, int send_eoi, +static int cec_write(struct gpib_board *board, u8 *buffer, size_t length, = int send_eoi, size_t *bytes_written) { struct cec_priv *priv =3D board->private_data; @@ -61,7 +61,7 @@ static int cec_write(struct gpib_board *board, uint8_t *b= uffer, size_t length, i return nec7210_write(board, &priv->nec7210_priv, buffer, length, send_eoi= , bytes_written); } =20 -static int cec_command(struct gpib_board *board, uint8_t *buffer, +static int cec_command(struct gpib_board *board, u8 *buffer, size_t length, size_t *bytes_written) { struct cec_priv *priv =3D board->private_data; @@ -104,7 +104,7 @@ static void cec_remote_enable(struct gpib_board *board,= int enable) nec7210_remote_enable(board, &priv->nec7210_priv, enable); } =20 -static int cec_enable_eos(struct gpib_board *board, uint8_t eos_byte, int = compare_8_bits) +static int cec_enable_eos(struct gpib_board *board, u8 eos_byte, int compa= re_8_bits) { struct cec_priv *priv =3D board->private_data; =20 @@ -139,14 +139,14 @@ static int cec_secondary_address(struct gpib_board *b= oard, unsigned int address, return nec7210_secondary_address(board, &priv->nec7210_priv, address, ena= ble); } =20 -static int cec_parallel_poll(struct gpib_board *board, uint8_t *result) +static int cec_parallel_poll(struct gpib_board *board, u8 *result) { struct cec_priv *priv =3D board->private_data; =20 return nec7210_parallel_poll(board, &priv->nec7210_priv, result); } =20 -static void cec_parallel_poll_configure(struct gpib_board *board, uint8_t = config) +static void cec_parallel_poll_configure(struct gpib_board *board, u8 confi= g) { struct cec_priv *priv =3D board->private_data; =20 @@ -160,14 +160,14 @@ static void cec_parallel_poll_response(struct gpib_bo= ard *board, int ist) nec7210_parallel_poll_response(board, &priv->nec7210_priv, ist); } =20 -static void cec_serial_poll_response(struct gpib_board *board, uint8_t sta= tus) +static void cec_serial_poll_response(struct gpib_board *board, u8 status) { struct cec_priv *priv =3D board->private_data; =20 nec7210_serial_poll_response(board, &priv->nec7210_priv, status); } =20 -static uint8_t cec_serial_poll_status(struct gpib_board *board) +static u8 cec_serial_poll_status(struct gpib_board *board) { struct cec_priv *priv =3D board->private_data; =20 --=20 2.43.0 From nobody Tue Dec 16 00:22:12 2025 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (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 558F11ADC6C for ; Thu, 17 Apr 2025 00:45:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850746; cv=none; b=OsJJBsucQ7p6Eqn8nWlyc12kuBRuSAlDhyCtZi0md4oojXCQq54XCHawfVTxIEMDmaGGUISxvHWcGk2mBHGj3dQLjYfwyrXDZZB8pLfYMPdZbxbiwFsoPb0AHGBo7RUCDtFSL44qU0uBtWcmj5nHGSzSJZjcBhStwjt7SBElo4g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850746; c=relaxed/simple; bh=wB0+LV91DnXQQGNzqKR/BclsH5n95+e2l+fGurYx9zI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Jof0dV5pepzH2DqSyXpc5GMKT5qp1+FYKrbfMJ7jCNrZG1UC9HZmtCxFNaTV7zKoW7xdntrEo532yiH/x2gE83PkZU8SCadHRCYkyemgJ4rTEUtklLTd6FAKPREpLuQJVzw28NIAqDoPKkrJGwdCJppJ5N6ktS2P0A+swoh2fUQ= 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=h2LPdEB6; arc=none smtp.client-ip=209.85.214.169 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="h2LPdEB6" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-22c3407a87aso3590655ad.3 for ; Wed, 16 Apr 2025 17:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverthere.org; s=google; t=1744850745; x=1745455545; 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=TFrFNnlUmxoJuqsI1VEzyrbevotU4o2PIpnAF37A/EY=; b=h2LPdEB6nCGQ3KS/xZZC2jKYmGLK1048Re5Kl8Hlxw/cbLAJn+yZJ24MWxgMPRUiE9 HATXxJo3SDItLGwRaRPzOu/4TbZ3xoG3eRG/aAOW/5xWEOsRnnZ6JA2SS/aoADkVSfAl qwNoJWsQNW+g4SeQy+iumVoX6mPFmc6d40xlxvq4Z+e09O5fwh++C/f1qO9yYq69kCBz jwHcItLxnFJnhifuhqzZoM3QfxfBpv1uPRLAcnz+hBqwosqrCGahTWaM4jcWjYO8EFbY KnWK5zVDiI88dcaOGldWwZES958lFHuBYfD9q2sg9BYA9xzxIHSwA7jnOd6NjZLapsRU kKsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744850745; x=1745455545; 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=TFrFNnlUmxoJuqsI1VEzyrbevotU4o2PIpnAF37A/EY=; b=ETw1ckLS42cZP4NpyYCO7m2aSpmUS9obIsMve4SvHM8B4B+GsGwTwdLhBiU4jVtp7E BXiQeCaSa1yOK0lp5hI7HiG9AMEXbGOg9RVRjB4sWx3HggvgvJv13lBegpyBWCgjxC1T 22ymwO+Pza1evjuT3soMc1ruGwX6sDnFn82LW1POfDZ2Sc8ZbkifxkTlzW65C8shVJdd nDky9b+Wt4jf9VKUbeq/Ka3MzPbbTcj296Ixp1K9Pghm+bXbBsOL6VxKz5OzztpaUcfv LwgFGIikOvdu+LZPmmFu8+TMogGy5QERl3drMh77yKnCj5kb8TDYAxNO8l+jHxc5vZJS AInw== X-Forwarded-Encrypted: i=1; AJvYcCXfIGP0YSZbcf/UszxIRRJ9arsAfVY89JoXXvSf9tcCfz2excZvJxwkrnoiLvL+CUkNSmMMdc6w2tI3P+k=@vger.kernel.org X-Gm-Message-State: AOJu0YyPX7WFYoXOmKbzTrz2eLlOsTt42w/OM21KXLsWzLeYUeXGIGKV KO+jX7bOfJW9JfKyN0EAFC7EMrTjn+QIPt9PgH1uRZhzck8htjNgaR4JZTRK/w== X-Gm-Gg: ASbGnctTFL1nM4qjaO8ptoetLmpPOA7UMdILUyi1YAXfeK7Y/umGzDMsVxTRfX5HHgm z/QAukxcbwLTUwwQUgQ95vBiAbibHhMobc2CSSCptvaBt4GXa6Y2LgwuxE+wYbV50gKaAfvSJJ8 +ccDmrmPVhGydQgwNu0RnjK152vpyKH1NfZx1MODZBG51inUGpVAb+qnwetfYlfRhDQ+ctIIIrL DcesRUUC+6HbaggbBSBMasmN7YMh3g61UPqfLfMLm5MzckSaRuTxUIjBBFtBHTpY6iedL/3oXTx RCmr/87FZ+OO8kcbWH5rPeDKcDJy9+ctGRsrAQqcqfCg7wgvw0eiwKkAUoyRDzPwd9PnG/T3Tw+ xRS1CAg== X-Google-Smtp-Source: AGHT+IHupqzfoJY9EqLHDGlcyjRAk88IbaBDb/wMwF/OcvBE0w1hJEg1mGy1VxOeddmY+TH6QHmQtg== X-Received: by 2002:a17:902:d487:b0:220:f87d:9d5b with SMTP id d9443c01a7336-22c3591836amr56173735ad.24.1744850744760; Wed, 16 Apr 2025 17:45:44 -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-22c33f1d16bsm20981105ad.58.2025.04.16.17.45.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 17:45:44 -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 06/14] staging: gpib: gpib_os: u8 over uint8_t Date: Thu, 17 Apr 2025 00:45:25 +0000 Message-ID: <20250417004533.86765-7-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 --- drivers/staging/gpib/common/gpib_os.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/gpib/common/gpib_os.c b/drivers/staging/gpib/c= ommon/gpib_os.c index 87329d35ca47..163d9a64e7df 100644 --- a/drivers/staging/gpib/common/gpib_os.c +++ b/drivers/staging/gpib/common/gpib_os.c @@ -263,7 +263,7 @@ struct gpib_status_queue *get_gpib_status_queue(struct = gpib_board *board, unsign } =20 int get_serial_poll_byte(struct gpib_board *board, unsigned int pad, int s= ad, - unsigned int usec_timeout, uint8_t *poll_byte) + unsigned int usec_timeout, u8 *poll_byte) { struct gpib_status_queue *device; =20 @@ -339,7 +339,7 @@ static int setup_serial_poll(struct gpib_board *board, = unsigned int usec_timeout } =20 static int read_serial_poll_byte(struct gpib_board *board, unsigned int pa= d, - int sad, unsigned int usec_timeout, uint8_t *result) + int sad, unsigned int usec_timeout, u8 *result) { u8 cmd_string[8]; int end_flag; @@ -410,7 +410,7 @@ static int cleanup_serial_poll(struct gpib_board *board= , unsigned int usec_timeo } =20 static int serial_poll_single(struct gpib_board *board, unsigned int pad, = int sad, - unsigned int usec_timeout, uint8_t *result) + unsigned int usec_timeout, u8 *result) { int retval, cleanup_retval; =20 @@ -475,7 +475,7 @@ int serial_poll_all(struct gpib_board *board, unsigned = int usec_timeout) */ =20 int dvrsp(struct gpib_board *board, unsigned int pad, int sad, - unsigned int usec_timeout, uint8_t *result) + unsigned int usec_timeout, u8 *result) { int status =3D ibstatus(board); int retval; --=20 2.43.0 From nobody Tue Dec 16 00:22:12 2025 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 941EE1B87D9 for ; Thu, 17 Apr 2025 00:45:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850748; cv=none; b=EfmXs7oYR4MGDufVGKUPWJGxgWUcptv/qHZ6Zbuq9UdTUCk1H2d3K1k2stoL6M31hiJrIzlhsphXb7jh9c/Iw6F5FHX9D5ZfKTjvop3L+0W3rbv2/i0wfHHmIJxYO5KAXyWX5Y+D9pIZ6gGMeRJteiN009nud+MEFO9E89w8ygI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850748; c=relaxed/simple; bh=BfpNSRi1Uu/jpmaQIwRuJR7O8bLRmM8l//Nz8oq/Em0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tEEU7Uo3oCEu9j9fgGBYtm/TT3dNOWKXTIbGKxgQHc8vj3XJF1M/LjDr9gWL/yzaSKfuHwc2xb5QCKhlumvhD93jfLA3u+jEjlocEcnLBLxpr6SsHbQxva0urigzhmBObADoYf8ZPT37trEjCgXdLOPb1UoCt2iR9sys8xnhzDI= 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=kiloKIO+; arc=none smtp.client-ip=209.85.210.179 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="kiloKIO+" Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-736b0c68092so150585b3a.0 for ; Wed, 16 Apr 2025 17:45:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverthere.org; s=google; t=1744850746; x=1745455546; 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=IAKFbJ92CSJHJrxPyaZfvAqvrH9/BDlLmlfyn2taFCM=; b=kiloKIO+0+hgp6PM5UZDNTiP+K9kCzEoX62eXPA0xLHKc8/qoHkykLNsx3+SeWK54S iVnrLawdNJVDJ8lp73CLs2yRU2ilV8Qx/RoSlYZ7kZmYpZ6Yb8dNGQn7AhWnxeRDb7oF 3wTfxiJitSaLgavdUYTwPCvOOJ/sutHbYESvzA23Q5qUwsYgQ7nxtDJPghyU2RDZVdyv NtRmGlsqKNsdp96NoOZonYsJJR9WvTYVlHYbbBW1ifhBLbmv2N2+ekoHHhIGD6cBKAPH LRofmf1hC5X/nuuTBBJKvadHFIhWat22qnsThG5XbhPumWJxDGGl4qNUZOIEH18XazBJ Z+fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744850746; x=1745455546; 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=IAKFbJ92CSJHJrxPyaZfvAqvrH9/BDlLmlfyn2taFCM=; b=b50Osezws/UTfdlfm4nusBvkLunteMzgjxZBqWKq9qJIUNKvimrHYrVpwfi85FgWVX liO72OsNeGIVnj9hbKIHgIHf9X9+fqDN4t8ITBI96iyin6mz9kvuAHo9Ea7xlVk5KQAo CS0rl/M6sdlGonQ2lCmxDGXdmr7iXTC9HEDtpmwkcozHboFniSb09fmtEeZXkVZ4EFjR zGzG8YHTMqyvDr9jo6U7AT7bTVfcj4e9jYE13o2yZuQFiatZXHu75khVJZan9M0kZ/dk nlSB2bncuCnf11sEP6opDsHqNvmtqbh5ztdthplGnpM8mc0luYJBeRIRH7FMQI7N7L5A bVxQ== X-Forwarded-Encrypted: i=1; AJvYcCVRmwhE7v2UqnXx+L578zp/svtPnjfPkEpfiVrRJV0VE2PdikVYauAiNpgjGa9fcBBFfmVtrfu7yRbWS7w=@vger.kernel.org X-Gm-Message-State: AOJu0YxEPt5wYLrEz8jHvkCYoRCDlAnM87L2HgoZAjqG5IdKF7lxAA6p +s17Sb4/v9/3GPiRDT7UltR76bMoR3P51Ijkv7fFqPcUy4TEbI5ZIJpl1eolCw== X-Gm-Gg: ASbGncsqlFQAcSxeIRoKITDP7Z5QlI9ceGZU7uWG6ofRB/X47hrTUGl7wJLZIrH3Gwf S2plmnvUuO1fjjvqAhe3gSgBbKGeCB13mv98W2VqeMv3ayt+/b3iYr74mCMdBKKiEne1YT9RxFs XGIAAIqznmqX/MmqXVvoQqZXlEddjieH6rR93qH/y90obyOSfQZ36hJUuObU5wbJ6OxZom2o4VK T9RTpcN7Pady2JRRSCeLv13Pe4Km20aYpJJW8IKi3gSrGOP4Rb3fNyygk/CDPooOi0MGuUP9bw1 A7Xtc58Am14EIuDr/w7KpvrxH9+qt4qGY82bTmUAyjFC6BAh3Qa7b5wXeWvtJ3oi2rbKPodLM2M EQHqXbA== X-Google-Smtp-Source: AGHT+IFidBuGN0n+VIOG8CSLHLwCIO25lpQNbrmEyMabU9NWT6sPaBFaUtvwxsYr97qTiXyu8zpE5w== X-Received: by 2002:aa7:9313:0:b0:736:a6e0:e66d with SMTP id d2e1a72fcca58-73c266e1782mr5325800b3a.6.1744850745872; Wed, 16 Apr 2025 17:45:45 -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-73bd2198b53sm11094153b3a.21.2025.04.16.17.45.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 17:45:45 -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 07/14] staging: gpib: gpib_bitbang: u8 over uint8_t Date: Thu, 17 Apr 2025 00:45:26 +0000 Message-ID: <20250417004533.86765-8-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 --- drivers/staging/gpib/gpio/gpib_bitbang.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/gpib/gpio/gpib_bitbang.c b/drivers/staging/gpi= b/gpio/gpib_bitbang.c index 443d739c7edf..0da718389182 100644 --- a/drivers/staging/gpib/gpio/gpib_bitbang.c +++ b/drivers/staging/gpib/gpio/gpib_bitbang.c @@ -325,7 +325,7 @@ static void set_data_lines(u8 byte); static u8 get_data_lines(void); static void set_data_lines_input(void); static void set_data_lines_output(void); -static inline int check_for_eos(struct bb_priv *priv, uint8_t byte); +static inline int check_for_eos(struct bb_priv *priv, u8 byte); static void set_atn(struct gpib_board *board, int atn_asserted); =20 static inline void SET_DIR_WRITE(struct bb_priv *priv); @@ -354,7 +354,7 @@ static char printable(char x) * * *************************************************************************= **/ =20 -static int bb_read(struct gpib_board *board, uint8_t *buffer, size_t lengt= h, +static int bb_read(struct gpib_board *board, u8 *buffer, size_t length, int *end, size_t *bytes_read) { struct bb_priv *priv =3D board->private_data; @@ -492,7 +492,7 @@ static irqreturn_t bb_DAV_interrupt(int irq, void *arg) * * *************************************************************************= **/ =20 -static int bb_write(struct gpib_board *board, uint8_t *buffer, size_t leng= th, +static int bb_write(struct gpib_board *board, u8 *buffer, size_t length, int send_eoi, size_t *bytes_written) { unsigned long flags; @@ -729,7 +729,7 @@ static irqreturn_t bb_SRQ_interrupt(int irq, void *arg) return IRQ_HANDLED; } =20 -static int bb_command(struct gpib_board *board, uint8_t *buffer, +static int bb_command(struct gpib_board *board, u8 *buffer, size_t length, size_t *bytes_written) { size_t ret; @@ -921,7 +921,7 @@ static void bb_remote_enable(struct gpib_board *board, = int enable) } } =20 -static int bb_enable_eos(struct gpib_board *board, uint8_t eos_byte, int c= ompare_8_bits) +static int bb_enable_eos(struct gpib_board *board, u8 eos_byte, int compar= e_8_bits) { struct bb_priv *priv =3D board->private_data; =20 @@ -988,12 +988,12 @@ static int bb_secondary_address(struct gpib_board *bo= ard, unsigned int address, return 0; } =20 -static int bb_parallel_poll(struct gpib_board *board, uint8_t *result) +static int bb_parallel_poll(struct gpib_board *board, u8 *result) { return -ENOENT; } =20 -static void bb_parallel_poll_configure(struct gpib_board *board, uint8_t c= onfig) +static void bb_parallel_poll_configure(struct gpib_board *board, u8 config) { } =20 @@ -1001,11 +1001,11 @@ static void bb_parallel_poll_response(struct gpib_b= oard *board, int ist) { } =20 -static void bb_serial_poll_response(struct gpib_board *board, uint8_t stat= us) +static void bb_serial_poll_response(struct gpib_board *board, u8 status) { } =20 -static uint8_t bb_serial_poll_status(struct gpib_board *board) +static u8 bb_serial_poll_status(struct gpib_board *board) { return 0; // -ENOENT; } @@ -1366,7 +1366,7 @@ inline long usec_diff(struct timespec64 *a, struct ti= mespec64 *b) (a->tv_nsec - b->tv_nsec) / 1000); } =20 -static inline int check_for_eos(struct bb_priv *priv, uint8_t byte) +static inline int check_for_eos(struct bb_priv *priv, u8 byte) { if (priv->eos_check) return 0; --=20 2.43.0 From nobody Tue Dec 16 00:22:12 2025 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 C76E01CAA71 for ; Thu, 17 Apr 2025 00:45:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850749; cv=none; b=T27vFPoEDAFBIJiBzHmV6mcgJ0rVQbF0Yze9OH6ChqhQCYYkg4M40UiQA4lJunTKhigsKJlWlmqvEbFQx0yon3+Tdf9uUmNiUtF/hxvb8n06xOJ5nxiZTzFdlp9+I60auZhYbbqdN1kfgaI9IQ17Ea8Y0NbHkKdbGmcOaDU6KQw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850749; c=relaxed/simple; bh=j+MTmHFRQP0zHm00kamesmDnYTv1fzOMNJlvemIhMc4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pm03dkZYJ4tFEGtMC5yZsEDMz2MdX0KXm8mk5Biqcj1RrsJs9D8zW2Ur3z+8y3sojS78TqL5OJzyXK4ADGrwIVhppZgLqmXzVusobiHT6zAuSHwwSp2eVD2UTuk4hCTad08oEIx3+LYcsJHm8cKNjgT4MFhBZTMa0Qo5CFh+Z7Q= 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=RWgsdZLi; arc=none smtp.client-ip=209.85.214.177 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="RWgsdZLi" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-2241053582dso3398725ad.1 for ; Wed, 16 Apr 2025 17:45:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverthere.org; s=google; t=1744850747; x=1745455547; 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=Ckx60dJiiATx8q3ipdm187MmOymO4PQNEigjQjcjyXo=; b=RWgsdZLio0B+4ILb0ZyhC/zPMasVx2pO7q+3xZy6EyyU0+hZpMcOr04MWvqo0uZ4p3 N/r/Hw/w8WGG9JG37xXxR424w0TiADozScfqNBBQSYGLtgcrcpngltrG7wIJl2Pnts6x pmbML2EC7t3DBB8qTLPta5wtdbVZB4XtztzAEjDa0c1o3BxbC9sr3wwSTUTnArrikOp+ 9VbDTSbzDGQj4bvajOgVs3DTTKe8y5YbMOaQiFjBpD19xdZPQpLfC/a5V2qciz87fLfq K0myxa+wPJgHIauDodx24GZgDeApHxjt0x0CEBFQOqmXrrqqsIiO8BD93KfJ7qlpPMFQ hwLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744850747; x=1745455547; 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=Ckx60dJiiATx8q3ipdm187MmOymO4PQNEigjQjcjyXo=; b=B3hgPBjedWVB3w/6JdFO6v673E9dXKC47NGIXEDZVH963khjpCGsADcdy6lVFJbSUA aw8E45T1/zUYE0R8+/9Zw/hHlaPaDVU4ozJFgnfDU1bE2Kt859dOf8yH5UvbCkfV3YHG Ko0Jtpu6CNaDis6ULDsULRdq/PKe5yWjEOfkMyINGLaIOKE4I/LlX0BennNqKYJntJi7 z32M0Wn7je5qhQV7qbR8RbQq3Hrcr+vvAu61rW+d2GBh31/i42z6Wko8Te6toHUjqQAT 9UzZNF62+G+52ZlLvnmGW+/2V4GZFhlX/zDE90aOpCHgInmHLFYt5FQ6EVwpVzaNcBhv lBhg== X-Forwarded-Encrypted: i=1; AJvYcCWKoWyPP6eXAqoXHRZuhpgpjdN9ZclGM9abj0hLbwx7Mf0Mr+YiHOjEMwxFYW3ppTLb5yq6mTNP/qfYQA4=@vger.kernel.org X-Gm-Message-State: AOJu0YwiOwrtUBPiOA4mRPn1+fQu9m/knajY5u+1T6dt2kmV8tgtOgYN rU7YF/fMVsFW7LIXqZpEYxplNsiMF3E7IhmSUiVBdhTWip1AxnSNESsQiIA+5hh8fhhPOLrS6Zw = X-Gm-Gg: ASbGncseffjxptjyIzA+rCl1FSM9nteaw+qCB5EzwDIp59yDnpTGJ8/xQyDgRVN8nxX b4L56iAtv7m9PVp9r6fhPAW5ldR9MJRDQM/3uLJyPr+ulRBcCsdrv5w8NewU22OaYG90OK+x9iy QRaZmT7sOFJ1ORuLrrO0bfrw1W0xYdanAvKrlnlbJKbAZyUGD5fl2WYhb+JvEQf8snWeoeva2Nc E8ZQh1QdPd3wAT/KRHfUfdqX6Z4RPXcwLGJRr/rOzqW32SFdeU8EkD9X14LW70+6DcOWNXSv631 oCIhJ5LhfBWxq3iEN8ITaxVxM0Fz+V2Wlkn2Ad1Uxp1ljc7KnwVHVNEgg+CMqtCgKBsV2sZPMZ1 A7zBk1Q== X-Google-Smtp-Source: AGHT+IHYrFT5dAL+C82IX4ktyem8/uw/i49r6KNMVsvIbtHJn2HOu9uoeECYGG2O16oWWcDdJ2lEyg== X-Received: by 2002:a17:903:2451:b0:224:1001:677c with SMTP id d9443c01a7336-22c358c568fmr49927625ad.9.1744850747009; Wed, 16 Apr 2025 17:45:47 -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-22c33ef0e6dsm20988265ad.52.2025.04.16.17.45.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 17:45:46 -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 08/14] staging: gpib: hp_82335: u8 over uint8_t Date: Thu, 17 Apr 2025 00:45:27 +0000 Message-ID: <20250417004533.86765-9-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 --- drivers/staging/gpib/hp_82335/hp82335.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/gpib/hp_82335/hp82335.c b/drivers/staging/gpib= /hp_82335/hp82335.c index 7f14ecb46026..3d08d2f726e1 100644 --- a/drivers/staging/gpib/hp_82335/hp82335.c +++ b/drivers/staging/gpib/hp_82335/hp82335.c @@ -30,7 +30,7 @@ static void hp82335_detach(struct gpib_board *board); static irqreturn_t hp82335_interrupt(int irq, void *arg); =20 // wrappers for interface functions -static int hp82335_read(struct gpib_board *board, uint8_t *buffer, size_t = length, +static int hp82335_read(struct gpib_board *board, u8 *buffer, size_t lengt= h, int *end, size_t *bytes_read) { struct hp82335_priv *priv =3D board->private_data; @@ -38,7 +38,7 @@ static int hp82335_read(struct gpib_board *board, uint8_t= *buffer, size_t length return tms9914_read(board, &priv->tms9914_priv, buffer, length, end, byte= s_read); } =20 -static int hp82335_write(struct gpib_board *board, uint8_t *buffer, size_t= length, int send_eoi, +static int hp82335_write(struct gpib_board *board, u8 *buffer, size_t leng= th, int send_eoi, size_t *bytes_written) { struct hp82335_priv *priv =3D board->private_data; @@ -46,7 +46,7 @@ static int hp82335_write(struct gpib_board *board, uint8_= t *buffer, size_t lengt return tms9914_write(board, &priv->tms9914_priv, buffer, length, send_eoi= , bytes_written); } =20 -static int hp82335_command(struct gpib_board *board, uint8_t *buffer, size= _t length, +static int hp82335_command(struct gpib_board *board, u8 *buffer, size_t le= ngth, size_t *bytes_written) { struct hp82335_priv *priv =3D board->private_data; @@ -89,7 +89,7 @@ static void hp82335_remote_enable(struct gpib_board *boar= d, int enable) tms9914_remote_enable(board, &priv->tms9914_priv, enable); } =20 -static int hp82335_enable_eos(struct gpib_board *board, uint8_t eos_byte, = int compare_8_bits) +static int hp82335_enable_eos(struct gpib_board *board, u8 eos_byte, int c= ompare_8_bits) { struct hp82335_priv *priv =3D board->private_data; =20 @@ -124,14 +124,14 @@ static int hp82335_secondary_address(struct gpib_boar= d *board, unsigned int addr return tms9914_secondary_address(board, &priv->tms9914_priv, address, ena= ble); } =20 -static int hp82335_parallel_poll(struct gpib_board *board, uint8_t *result) +static int hp82335_parallel_poll(struct gpib_board *board, u8 *result) { struct hp82335_priv *priv =3D board->private_data; =20 return tms9914_parallel_poll(board, &priv->tms9914_priv, result); } =20 -static void hp82335_parallel_poll_configure(struct gpib_board *board, uint= 8_t config) +static void hp82335_parallel_poll_configure(struct gpib_board *board, u8 c= onfig) { struct hp82335_priv *priv =3D board->private_data; =20 @@ -145,14 +145,14 @@ static void hp82335_parallel_poll_response(struct gpi= b_board *board, int ist) tms9914_parallel_poll_response(board, &priv->tms9914_priv, ist); } =20 -static void hp82335_serial_poll_response(struct gpib_board *board, uint8_t= status) +static void hp82335_serial_poll_response(struct gpib_board *board, u8 stat= us) { struct hp82335_priv *priv =3D board->private_data; =20 tms9914_serial_poll_response(board, &priv->tms9914_priv, status); } =20 -static uint8_t hp82335_serial_poll_status(struct gpib_board *board) +static u8 hp82335_serial_poll_status(struct gpib_board *board) { struct hp82335_priv *priv =3D board->private_data; =20 @@ -227,12 +227,12 @@ static inline unsigned int tms9914_to_hp82335_offset(= unsigned int register_num) return 0x1ff8 + register_num; } =20 -static uint8_t hp82335_read_byte(struct tms9914_priv *priv, unsigned int r= egister_num) +static u8 hp82335_read_byte(struct tms9914_priv *priv, unsigned int regist= er_num) { return tms9914_iomem_read_byte(priv, tms9914_to_hp82335_offset(register_n= um)); } =20 -static void hp82335_write_byte(struct tms9914_priv *priv, uint8_t data, un= signed int register_num) +static void hp82335_write_byte(struct tms9914_priv *priv, u8 data, unsigne= d int register_num) { tms9914_iomem_write_byte(priv, data, tms9914_to_hp82335_offset(register_n= um)); } --=20 2.43.0 From nobody Tue Dec 16 00:22:12 2025 Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.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 E42D91CAA81 for ; Thu, 17 Apr 2025 00:45:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850750; cv=none; b=XtI9rrlGlbz9MCPjSA+MV8fUOjjy1mRDF3z7GcAXrDTeHOsmg/dBSXiW2DC8SikiY0dBAKPL/RV4BDRvB867c5LVbwoo0MCVHM5PNuzL+E/lem7EypAN127PtmE+Dlm/6wyKWDOm+ilggf3Va5MFcGYdkrzCcE4qXqQnmcKsb90= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850750; c=relaxed/simple; bh=Uf8hdJ0esOyHrstMds9ztbt/YWlLDotxQpLQRfIe4TQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XagDPA7iUc102aQQdtw8Qrn9OfIH9q8jbRZI04Zaf7AspQOr0U0oYx4SDcCdMIhB5IFThKNg0AurDDa0Qp58R/QobLo2AKzCb5RXNzG8mZ8zewAZLQ3oaZa0DjDBxQfHJqSmYrRbWBYQ6QIqDgbWLK7XTFn6HfTrFj5mGA4hrJo= 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=lOlxMlJ/; arc=none smtp.client-ip=209.85.215.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="lOlxMlJ/" Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-af548cb1f83so182657a12.3 for ; Wed, 16 Apr 2025 17:45:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverthere.org; s=google; t=1744850748; x=1745455548; 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=b2BNNM03a2O4ef/en52iuKrDen3mrX992h2ND005joM=; b=lOlxMlJ/BE3cnkx7pmR3zi+d1hxcRAVrQKMiiOKEj8lJcYNE0+ae9pa7UbD9Kdd2Ts 8w2JmHEz8s/OO6Dz8Tfugc6CfHIClcE77/UMpjHgFmkmWKFivlO5tyN98BTyJzYXIrGy mQ42EyEVZxpKzYby+v4v+a0sS4d68+JFKpKflJp5H4zgRtR1l32fD9X/vEpR3RUia3YO by0KAT/aWQ+CFoUqLqgNTacAkENgPm8eXF3dwkalzKqQILhVWWoIVcO5eUte7oqBxX9+ +l94SRlA7A45lnNuWE49EKf0z6NUioivIirMdVoTR6+c35wGzBl0YdH2NgWdNDVKk+9b 5cjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744850748; x=1745455548; 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=b2BNNM03a2O4ef/en52iuKrDen3mrX992h2ND005joM=; b=vT8tgMQ7wZMle+vmdZouRcj66tpWHgX7yuXUoEFS9bIC+JC4gfQZ8SAEKeDD5f6QSU d0l7Aakf/49GXCICt5w3AEVmH1JNAfJj2E75f7XrUK2kOoT0pybQ9C/JWMtIaIr3Jxez Oalx/ddLPJtsHRcfu9KdOd+bfuMX+ECrUH1cs+qDSl6/kuDIMOCMX5NCbVasGpxrBOUg O97bNl4erw0gkBt5Nqg472Ngvh+YOVH+xF3khgveu6mxi8wPvwh62gqXkAnuZy40L40d w3RpmVnx8DCxFlAchWFQscWBC9sJPVbIlcF1RAeFwezdjMXe5joSmtO0jQJMKBZf138g HCEw== X-Forwarded-Encrypted: i=1; AJvYcCUKsK65v47Ecp3ckWPtKiUtSyH0PX1rbFBFRqM55KFQhBukHqThZNHD9Y+FjoYl47IYMPFDfKKMbz5bzaw=@vger.kernel.org X-Gm-Message-State: AOJu0Ywpmch32WhkE39tZS+F9XG8OjTu45oz+iGvgh+VeRErK12hxql9 VCfKnFVft1mowbpzi8JBWnQkYlmgrxY8Ic5PJ6XMlSPXE3dvVshXfavsG1tuEA== X-Gm-Gg: ASbGncvkbRoYodmIb0o7lnxNUbbboy9gO/be+nS5rim/18EWsMpVv4DVuJUcQdNLCvb +i2Sz93tqezSOdssiZwbq6TYBNYd4QiED+XlD0kobWVz1Btj9yQO8CoQ0Uc8EdsA6goeXKN0fFQ thgYYPdoxsQOHbrP+dehLfVtU4tJaRrCefE5kOKjZiO1Mi4H2W8ii51ESWNcS+NUR/h1EVsoMLm wKcLRrKwAgEtEIZ9DVhmOw5A3lLLD+OyE9UP3i0AalXqfCjw7+P0r3pN1rWFSIYce8AbD42olm5 0NPJVZHW/M3mhP6QxoZeXyiVVVUKiwJNwiTaLOREljKQi7qHjCc/P1+L7ddzWgwHDMtFJVDEQNP wq2Sy9Vu1BBfLgOKx X-Google-Smtp-Source: AGHT+IFzMm2aNT6RpalNo0wsv5DWAsKuoxz22GVHDVmjA01s3MjQDoyRKWUNBlEOLCN7cBdZcj/+6A== X-Received: by 2002:a17:903:2a8f:b0:21f:85ee:f2df with SMTP id d9443c01a7336-22c358db5e2mr61585775ad.15.1744850748219; Wed, 16 Apr 2025 17:45:48 -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 98e67ed59e1d1-308611f002esm2275671a91.15.2025.04.16.17.45.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 17:45:48 -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 09/14] staging: gpib: hp_82341: u8 over uint8_t Date: Thu, 17 Apr 2025 00:45:28 +0000 Message-ID: <20250417004533.86765-10-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 --- drivers/staging/gpib/hp_82341/hp_82341.c | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/gpib/hp_82341/hp_82341.c b/drivers/staging/gpi= b/hp_82341/hp_82341.c index 1a32a2cc421e..41accfdbc49a 100644 --- a/drivers/staging/gpib/hp_82341/hp_82341.c +++ b/drivers/staging/gpib/hp_82341/hp_82341.c @@ -25,11 +25,11 @@ MODULE_DESCRIPTION("GPIB driver for hp 82341a/b/c/d boa= rds"); static unsigned short read_and_clear_event_status(struct gpib_board *board= ); static void set_transfer_counter(struct hp_82341_priv *hp_priv, int count); static int read_transfer_counter(struct hp_82341_priv *hp_priv); -static int hp_82341_write(struct gpib_board *board, uint8_t *buffer, size_= t length, int send_eoi, +static int hp_82341_write(struct gpib_board *board, u8 *buffer, size_t len= gth, int send_eoi, size_t *bytes_written); static irqreturn_t hp_82341_interrupt(int irq, void *arg); =20 -static int hp_82341_accel_read(struct gpib_board *board, uint8_t *buffer, = size_t length, int *end, +static int hp_82341_accel_read(struct gpib_board *board, u8 *buffer, size_= t length, int *end, size_t *bytes_read) { struct hp_82341_priv *hp_priv =3D board->private_data; @@ -173,7 +173,7 @@ static int restart_write_fifo(struct gpib_board *board,= struct hp_82341_priv *hp return 0; } =20 -static int hp_82341_accel_write(struct gpib_board *board, uint8_t *buffer,= size_t length, +static int hp_82341_accel_write(struct gpib_board *board, u8 *buffer, size= _t length, int send_eoi, size_t *bytes_written) { struct hp_82341_priv *hp_priv =3D board->private_data; @@ -256,7 +256,7 @@ static int hp_82341_attach(struct gpib_board *board, co= nst struct gpib_board_con static void hp_82341_detach(struct gpib_board *board); =20 // wrappers for interface functions -static int hp_82341_read(struct gpib_board *board, uint8_t *buffer, size_t= length, int *end, +static int hp_82341_read(struct gpib_board *board, u8 *buffer, size_t leng= th, int *end, size_t *bytes_read) { struct hp_82341_priv *priv =3D board->private_data; @@ -264,7 +264,7 @@ static int hp_82341_read(struct gpib_board *board, uint= 8_t *buffer, size_t lengt return tms9914_read(board, &priv->tms9914_priv, buffer, length, end, byte= s_read); } =20 -static int hp_82341_write(struct gpib_board *board, uint8_t *buffer, size_= t length, int send_eoi, +static int hp_82341_write(struct gpib_board *board, u8 *buffer, size_t len= gth, int send_eoi, size_t *bytes_written) { struct hp_82341_priv *priv =3D board->private_data; @@ -272,7 +272,7 @@ static int hp_82341_write(struct gpib_board *board, uin= t8_t *buffer, size_t leng return tms9914_write(board, &priv->tms9914_priv, buffer, length, send_eoi= , bytes_written); } =20 -static int hp_82341_command(struct gpib_board *board, uint8_t *buffer, siz= e_t length, +static int hp_82341_command(struct gpib_board *board, u8 *buffer, size_t l= ength, size_t *bytes_written) { struct hp_82341_priv *priv =3D board->private_data; @@ -320,7 +320,7 @@ static void hp_82341_remote_enable(struct gpib_board *b= oard, int enable) tms9914_remote_enable(board, &priv->tms9914_priv, enable); } =20 -static int hp_82341_enable_eos(struct gpib_board *board, uint8_t eos_byte,= int compare_8_bits) +static int hp_82341_enable_eos(struct gpib_board *board, u8 eos_byte, int = compare_8_bits) { struct hp_82341_priv *priv =3D board->private_data; =20 @@ -355,14 +355,14 @@ static int hp_82341_secondary_address(struct gpib_boa= rd *board, unsigned int add return tms9914_secondary_address(board, &priv->tms9914_priv, address, ena= ble); } =20 -static int hp_82341_parallel_poll(struct gpib_board *board, uint8_t *resul= t) +static int hp_82341_parallel_poll(struct gpib_board *board, u8 *result) { struct hp_82341_priv *priv =3D board->private_data; =20 return tms9914_parallel_poll(board, &priv->tms9914_priv, result); } =20 -static void hp_82341_parallel_poll_configure(struct gpib_board *board, uin= t8_t config) +static void hp_82341_parallel_poll_configure(struct gpib_board *board, u8 = config) { struct hp_82341_priv *priv =3D board->private_data; =20 @@ -376,14 +376,14 @@ static void hp_82341_parallel_poll_response(struct gp= ib_board *board, int ist) tms9914_parallel_poll_response(board, &priv->tms9914_priv, ist); } =20 -static void hp_82341_serial_poll_response(struct gpib_board *board, uint8_= t status) +static void hp_82341_serial_poll_response(struct gpib_board *board, u8 sta= tus) { struct hp_82341_priv *priv =3D board->private_data; =20 tms9914_serial_poll_response(board, &priv->tms9914_priv, status); } =20 -static uint8_t hp_82341_serial_poll_status(struct gpib_board *board) +static u8 hp_82341_serial_poll_status(struct gpib_board *board) { struct hp_82341_priv *priv =3D board->private_data; =20 @@ -480,12 +480,12 @@ static void hp_82341_free_private(struct gpib_board *= board) board->private_data =3D NULL; } =20 -static uint8_t hp_82341_read_byte(struct tms9914_priv *priv, unsigned int = register_num) +static u8 hp_82341_read_byte(struct tms9914_priv *priv, unsigned int regis= ter_num) { return inb(priv->iobase + register_num); } =20 -static void hp_82341_write_byte(struct tms9914_priv *priv, uint8_t data, u= nsigned int register_num) +static void hp_82341_write_byte(struct tms9914_priv *priv, u8 data, unsign= ed int register_num) { outb(data, priv->iobase + register_num); } --=20 2.43.0 From nobody Tue Dec 16 00:22:12 2025 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 D9AB01D7998 for ; Thu, 17 Apr 2025 00:45:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850751; cv=none; b=WaNy+q7CzM3oG/bSN9bOHBt4KeU72UtBeNE8fP5MaAoGZdNZ3fj86CX9L1SQ4CmgjP7HExnv0MYCoz2KC5e/AdHGScOPfEI1RwDAziFAIXfutB6A0ybhTXta1Y9XdZDxQAwdVNukiikg6jL/4FxdbRhum3QiZqFmdBS2iUAgMcA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850751; c=relaxed/simple; bh=dINICUlUQwKCLuaYFcvZQj0ckrAk0FXSLsUGERu4iAk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=N/tEDVTJINPdCnxMM9iFnjGVw836Vkj/mo8jdDk/g4dO4Ky6kAwjkFq4W/JyVptIbihFnSDdX3V9R4qgDiW/7DZsvsSk/z4b2T521emt2ghxHoos5tORX+Quh4lSHnakNE68G9IpUQdfS3j5HnjX/mdbFM+95tfUJCVuM7FtF2s= 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=Dv+qy+vT; arc=none smtp.client-ip=209.85.214.177 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="Dv+qy+vT" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-2295d78b433so2519425ad.2 for ; Wed, 16 Apr 2025 17:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverthere.org; s=google; t=1744850749; x=1745455549; 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=QHmTXYndf5bH9FTsR78jW+NBjJBfXqdxCg1p2ihtcws=; b=Dv+qy+vTjx4vXPQyI69P+h6k6wBEb1jmpTAFIqJu7FA6tmicnW16IMzk8YCxpF5zg7 ar/Y6mVoTGsTuw6f/jzZYwo1EisvgRTSDbdHmGRv7wbG7GRfXZEWv1U1UaSaQ6+AsDKZ AHX8nQJSBqM55pQHv1Xqku81Y8t+Fe5KvZJ8Fk4S8rNUw3oAiEy4TixVeHqIlh6zkV6L LjDYNBpJ9n+SI03OcQ3xljKRepzf+O7mSe8qVlbIQo1BXgYIQ7XlwVtaBovp/oVTs3U2 VautymzqkbZyGovyqqvuCcCgS0Y83Y5/Mi7h8Xyj0zsuGHb2pbTHTnsIok0N7O5Ykjye 5I0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744850749; x=1745455549; 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=QHmTXYndf5bH9FTsR78jW+NBjJBfXqdxCg1p2ihtcws=; b=XAg6B92J+ah6N+Y6DcBRBoP0HS3hVmZtpZ4mXt3xdNj32OWIt4GkHklAzvRK5leI8y rBm4v1lhJ9VQ1Fd7cHjcPUEj2kg/qO11S/yTNYbFbQD/hl8M11Np+y6idHftx+iZhLGw 5HCJD0A7R7HkMSLEH5MbiPbck9+tUzQ+FkzKFKXU9RaQDtLD2w3TLDCWKvwMkZVFym03 YwNHstZ8NmNZK1IKaWzmWFBhZ+WM/q8v2H9JH8AnVUiH1cperxaICz0fhMzS682nn45D asCzbyPmqFSPCkUrBw81sNNJQmlZJM/UT6aQaas33osE5UqucM6gZmeA8LUEshYS6lRX EHnQ== X-Forwarded-Encrypted: i=1; AJvYcCVFz6mraXaXVMiCGSOoS9JdsHQVWOgNBGMaNDujk5mNUkAAa0SXXbHpYB/dGOQJZOkUYFo5OP//77ejNtk=@vger.kernel.org X-Gm-Message-State: AOJu0YzGIwn8S5rs8GIKrD9ODSUPZeNLtCoL3Ksg42zb4bBobjWJJxa7 TAU+1gDICuPkdbnt3TnK9hDYZ0JivFFT6F4ssoF9SaWTMmX8NOKDv1Fih9DBYaGKT5z3J5A77CM = X-Gm-Gg: ASbGncsPnW2PzARN8O+yxiuhZNOSfrCh/4jZMPZTqgRpORokBVN5LmTI0TLt9igwA3/ VT74sCl9RhLRlDGbW8RpteIl0Cr1kxK/NF5kTqGJouEja57Eql+oc95PiPjvB5YljQKi7oHis/4 EQPcO8JGlJn0hytlijN2dWY/CyY47MjsP/sVWNyS2Dowc+RWlphgiipgM5KshQVHlgrJ6uJ7LQo DQBDRfpQNwQE8E1DeqI8AkppmN7imsDtiycWCUiZHefsIdDx7scq4tFyvIGzXOz/+mCYSKSklYp n/o8scmZ15e2oa3vDGM/fNwQv10UdqM2rsWmIpQcdUKxSIjLeMoJLHH0a0Eei9H4pNqCXMMiEM4 n3wIeoQ== X-Google-Smtp-Source: AGHT+IH3MhM2hoTiTH/u/6kjUD6KKHoQAem6f3XGNiye6KYVHV/o9gvD0bLkEkhVvZBAs7yhcOL7Lw== X-Received: by 2002:a17:902:e54b:b0:224:18bb:44c2 with SMTP id d9443c01a7336-22c358c616amr40273245ad.6.1744850749436; Wed, 16 Apr 2025 17:45:49 -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-22c33faa307sm20904095ad.136.2025.04.16.17.45.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 17:45:49 -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 10/14] staging: gpib: ni_usb: u8 over uint8_t Date: Thu, 17 Apr 2025 00:45:29 +0000 Message-ID: <20250417004533.86765-11-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 --- drivers/staging/gpib/ni_usb/ni_usb_gpib.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/gpib/ni_usb/ni_usb_gpib.c b/drivers/staging/gp= ib/ni_usb/ni_usb_gpib.c index a3d517efca08..d5b281fa8b37 100644 --- a/drivers/staging/gpib/ni_usb/ni_usb_gpib.c +++ b/drivers/staging/gpib/ni_usb/ni_usb_gpib.c @@ -589,7 +589,7 @@ static int ni_usb_write_registers(struct ni_usb_priv *n= i_priv, } =20 // interface functions -static int ni_usb_read(struct gpib_board *board, uint8_t *buffer, size_t l= ength, +static int ni_usb_read(struct gpib_board *board, u8 *buffer, size_t length, int *end, size_t *bytes_read) { int retval, parse_retval; @@ -720,7 +720,7 @@ static int ni_usb_read(struct gpib_board *board, uint8_= t *buffer, size_t length, return retval; } =20 -static int ni_usb_write(struct gpib_board *board, uint8_t *buffer, size_t = length, +static int ni_usb_write(struct gpib_board *board, u8 *buffer, size_t lengt= h, int send_eoi, size_t *bytes_written) { int retval; @@ -824,7 +824,7 @@ static int ni_usb_write(struct gpib_board *board, uint8= _t *buffer, size_t length return retval; } =20 -static int ni_usb_command_chunk(struct gpib_board *board, uint8_t *buffer,= size_t length, +static int ni_usb_command_chunk(struct gpib_board *board, u8 *buffer, size= _t length, size_t *command_bytes_written) { int retval; @@ -918,7 +918,7 @@ static int ni_usb_command_chunk(struct gpib_board *boar= d, uint8_t *buffer, size_ return 0; } =20 -static int ni_usb_command(struct gpib_board *board, uint8_t *buffer, size_= t length, +static int ni_usb_command(struct gpib_board *board, u8 *buffer, size_t len= gth, size_t *bytes_written) { size_t count; @@ -1182,7 +1182,7 @@ static void ni_usb_remote_enable(struct gpib_board *b= oard, int enable) return;// 0; } =20 -static int ni_usb_enable_eos(struct gpib_board *board, uint8_t eos_byte, i= nt compare_8_bits) +static int ni_usb_enable_eos(struct gpib_board *board, u8 eos_byte, int co= mpare_8_bits) { struct ni_usb_priv *ni_priv =3D board->private_data; =20 @@ -1341,7 +1341,7 @@ static int ni_usb_secondary_address(struct gpib_board= *board, unsigned int addre return 0; } =20 -static int ni_usb_parallel_poll(struct gpib_board *board, uint8_t *result) +static int ni_usb_parallel_poll(struct gpib_board *board, u8 *result) { int retval; struct ni_usb_priv *ni_priv =3D board->private_data; @@ -1396,7 +1396,7 @@ static int ni_usb_parallel_poll(struct gpib_board *bo= ard, uint8_t *result) return retval; } =20 -static void ni_usb_parallel_poll_configure(struct gpib_board *board, uint8= _t config) +static void ni_usb_parallel_poll_configure(struct gpib_board *board, u8 co= nfig) { int retval; struct ni_usb_priv *ni_priv =3D board->private_data; @@ -1474,7 +1474,7 @@ static void ni_usb_serial_poll_response(struct gpib_b= oard *board, u8 status) return;// 0; } =20 -static uint8_t ni_usb_serial_poll_status(struct gpib_board *board) +static u8 ni_usb_serial_poll_status(struct gpib_board *board) { return 0; } --=20 2.43.0 From nobody Tue Dec 16 00:22:12 2025 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.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 4FFE11DDA36 for ; Thu, 17 Apr 2025 00:45:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850752; cv=none; b=B+3zNMXqPupjHiW+9aswii2R2tqmnL+1MoMx2C0MYF5bmKFvdpOqJeBkfymfRpOJpQT3Y7XRvxpwcPtI3mbj71zcPzaMcxa3Si7IpglgE5sZsCHkmrmTeGNKZJ6SfVjgkeaoj14UYQmFeXDI1XQ++E1BGA7NT79lNPLDPj7OYPY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850752; c=relaxed/simple; bh=vqqMD2vMr3KfIaXswxJ7mru+gGuO0Ld1w+78Qj406Ug=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=B94IjBaNpFxgMj9MngCqi3fmXNEvNfMxFpJs47UWArf+wYxGjde5ZNQ9xwA1PoHr3Ad82R2q5/uau+VXbtaccOzXmO8vx7UoA3rLGhbOnzt+XwA4WgP/jHWq5v8EUDs4y79PqVhst7sSnFPLw1YZ/PSMcx4ZoXWVma8Uv6QWhWY= 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=YKYWYAia; arc=none smtp.client-ip=209.85.214.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="YKYWYAia" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-223fb0f619dso3036695ad.1 for ; Wed, 16 Apr 2025 17:45:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverthere.org; s=google; t=1744850750; x=1745455550; 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=9MpLJjSgDnPFGiVpHm3KvyZyL7VDXcVSfSDoSsrVCXw=; b=YKYWYAiaHa84H6rbv0xJmAoQ7cSnkkKpjgLds44JKefEw+0Vtw4NxUKtbWd4Pk5+ll ypYvx8Hq42QRxCgd+jRMRLyXYDC9WitHcyAXTe21VSrlPVXBkPOVPoArtF3aRSJPZr0x n3zNHeiCfy9lm4V1pd9O8u3i81BxlyNogF0QhaII7f5QqM2JY2lYic8hfmg9scQ5PXGe fnUvNCT10loD0l89D1fTJR4ttkbQsqljoPh13ckhY0k4TM1yMuMoE1cHJ/+LVyD8kHTc nviNMg9vL1GPzP9bBmrvtuent73w5SFSl3JAWsiJl6lgBIS87iAEbk/l3WEmpmlKkIol ctaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744850750; x=1745455550; 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=9MpLJjSgDnPFGiVpHm3KvyZyL7VDXcVSfSDoSsrVCXw=; b=AEmpqzsqTK66Ye/kfuIfik5VNxgMSz4P9z4gIiy/+1Ai9B7hFZ/DpGCInufqa/22w6 g5lHg8xOgKxlxXlEnX8q2uG8zjBoQLqvkT8AUyOMi22WpC6Z3VCs5QUKv+RB1w503MDo t+c+d3QqD3Nnw0Nhn4cRb9kyDIBHHSDVbQ7E20mvN2qcALhKMBOPHIB3Fu/TctYZIqtB c/i37WlOU3r/uMpTiiSeKUxVoAmLWbPgoXIoe0MtkTe3Sv4bvmwNQInGW4N8nn/l8UQt 8KXwilWjV1UDD3WFXWGMQNw0vub8OgqhgXWGmNr7DJojKIM/CNvISqyZd1Okyv443cf6 njqQ== X-Forwarded-Encrypted: i=1; AJvYcCWyjdJJeTgjpc7lsCirz1eYYEkAW35QINV7V8tD188uOIqu2g8cgbv//WuTuujQ4Qqt8SKzWMolSqNCL94=@vger.kernel.org X-Gm-Message-State: AOJu0YwOTRzL/LXTpCGmtWVIlTkxY1Bcm1klk5gaMtPu6YTkw021oidS CTTJQfhC4b1sgA31M90PhIHVTXyltm62jyVyJtfxIdgMEdyVYtglVqEAfbE5VZQcqAGO+8mUUOs = X-Gm-Gg: ASbGncsg0/2yOxbAHVh1yjMFncqZh+OL6LdjAbBQqjVlBuq5UleBqNcIUNF2xGNxQpy tJOpFIClXyipX8BVyb+s/3fCJDSN00cwWnphsM2+bTHnOTJBZhueim+U19xGVsaErchipiaKvD3 zAiUcjDVwZH57mph/VcFrgY2zdFt/S+qFRxvhb41fuJcPFyobz2dPL+Vl3UcrNYKOOavmDTEP/k aUhDJsHw1pV0nv4lwlAtQhyiv41BsFmvsspvGeOd3ndGWlhRmjygn/UAnAWq+2E967qjWkk5RTy 3W+jyuDQLhc9yQ4jABtNXRgCFwCBUAWV0kgZv1W/SEeXn0DSo6tMU8Njy51MdP7WBlC53HknlgU +vYYT0voDlTZLcu/4 X-Google-Smtp-Source: AGHT+IFKuJl/aeUSGhla9FOWsU2V8+3HJ8VUb4CYfV/wKpEd6/jg8WfSCM6hMpkMfJIdXmgjLpnGmA== X-Received: by 2002:a17:902:c944:b0:220:e9ac:e746 with SMTP id d9443c01a7336-22c359a43dcmr64796545ad.53.1744850750593; Wed, 16 Apr 2025 17:45:50 -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-73c2b2122c5sm1565886b3a.76.2025.04.16.17.45.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 17:45:50 -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 11/14] staging: gpib: pc2: u8 over uint8_t Date: Thu, 17 Apr 2025 00:45:30 +0000 Message-ID: <20250417004533.86765-12-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 --- drivers/staging/gpib/pc2/pc2_gpib.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/gpib/pc2/pc2_gpib.c b/drivers/staging/gpib/pc2= /pc2_gpib.c index ae265e2eb46a..fd191d24d7a6 100644 --- a/drivers/staging/gpib/pc2/pc2_gpib.c +++ b/drivers/staging/gpib/pc2/pc2_gpib.c @@ -90,7 +90,7 @@ irqreturn_t pc2a_interrupt(int irq, void *arg) } =20 // wrappers for interface functions -static int pc2_read(struct gpib_board *board, uint8_t *buffer, size_t leng= th, int *end, +static int pc2_read(struct gpib_board *board, u8 *buffer, size_t length, i= nt *end, size_t *bytes_read) { struct pc2_priv *priv =3D board->private_data; @@ -98,7 +98,7 @@ static int pc2_read(struct gpib_board *board, uint8_t *bu= ffer, size_t length, in return nec7210_read(board, &priv->nec7210_priv, buffer, length, end, byte= s_read); } =20 -static int pc2_write(struct gpib_board *board, uint8_t *buffer, size_t len= gth, int send_eoi, +static int pc2_write(struct gpib_board *board, u8 *buffer, size_t length, = int send_eoi, size_t *bytes_written) { struct pc2_priv *priv =3D board->private_data; @@ -106,7 +106,7 @@ static int pc2_write(struct gpib_board *board, uint8_t = *buffer, size_t length, i return nec7210_write(board, &priv->nec7210_priv, buffer, length, send_eoi= , bytes_written); } =20 -static int pc2_command(struct gpib_board *board, uint8_t *buffer, +static int pc2_command(struct gpib_board *board, u8 *buffer, size_t length, size_t *bytes_written) { struct pc2_priv *priv =3D board->private_data; @@ -149,7 +149,7 @@ static void pc2_remote_enable(struct gpib_board *board,= int enable) nec7210_remote_enable(board, &priv->nec7210_priv, enable); } =20 -static int pc2_enable_eos(struct gpib_board *board, uint8_t eos_byte, int = compare_8_bits) +static int pc2_enable_eos(struct gpib_board *board, u8 eos_byte, int compa= re_8_bits) { struct pc2_priv *priv =3D board->private_data; =20 @@ -184,14 +184,14 @@ static int pc2_secondary_address(struct gpib_board *b= oard, unsigned int address, return nec7210_secondary_address(board, &priv->nec7210_priv, address, ena= ble); } =20 -static int pc2_parallel_poll(struct gpib_board *board, uint8_t *result) +static int pc2_parallel_poll(struct gpib_board *board, u8 *result) { struct pc2_priv *priv =3D board->private_data; =20 return nec7210_parallel_poll(board, &priv->nec7210_priv, result); } =20 -static void pc2_parallel_poll_configure(struct gpib_board *board, uint8_t = config) +static void pc2_parallel_poll_configure(struct gpib_board *board, u8 confi= g) { struct pc2_priv *priv =3D board->private_data; =20 @@ -205,14 +205,14 @@ static void pc2_parallel_poll_response(struct gpib_bo= ard *board, int ist) nec7210_parallel_poll_response(board, &priv->nec7210_priv, ist); } =20 -static void pc2_serial_poll_response(struct gpib_board *board, uint8_t sta= tus) +static void pc2_serial_poll_response(struct gpib_board *board, u8 status) { struct pc2_priv *priv =3D board->private_data; =20 nec7210_serial_poll_response(board, &priv->nec7210_priv, status); } =20 -static uint8_t pc2_serial_poll_status(struct gpib_board *board) +static u8 pc2_serial_poll_status(struct gpib_board *board) { struct pc2_priv *priv =3D board->private_data; =20 --=20 2.43.0 From nobody Tue Dec 16 00:22:12 2025 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 296931DE4C5 for ; Thu, 17 Apr 2025 00:45:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850753; cv=none; b=dM75NdLmSeJcCPDmM3xXguPaJjdmNtuQotGACbpAbWJHMjIL4uANNvthu/6u9H0jZ2q9caLao6lcHKKppkh3nnIgz8BP9cQsvhoiuMVoiZaSQwqgdWZArxJX2YpqjmqWZuWcHmVRjv/zzPR6nXe0nUDCQV0fQtyXq0V8zfDqT2Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850753; c=relaxed/simple; bh=3Tspjz7wxGyMD0ERoZ4OefpIVgysaEDnq71Z9+37JeU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LibaPyLJOQuwcflftItC7MgPpffuDq7gLvplwD4xDKVWvJSahzRMxkK28HKuHUV3SuQLwngJ2Lgkqb40eL/YedVx51l51yPHqFTT74DxS7VU2g6AHgx1BX3LrBkTDaMFt5NrRzLXlREBi9Tqg9i9yd0eVEuwTYbJ3bwDdTjfSYk= 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=JCQRkk5h; arc=none smtp.client-ip=209.85.214.179 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="JCQRkk5h" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-226185948ffso2660755ad.0 for ; Wed, 16 Apr 2025 17:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverthere.org; s=google; t=1744850751; x=1745455551; 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=Kx5EY5NNpPB6MvS87zqGMc+jEI/M9Fei5OKN+WHLkj4=; b=JCQRkk5h7EacTtl6l5xEboPfEdSC8FbAy6pCyarPIoMokxh+keGXcCm9W4bejWmYa0 aMyHOGpaLvdwdplxKS/W2doh+9xiJdyVaqRPp9mYCRhKX30L0o0WKW8EdRrYhvcmpw3Q 632bEt9vGsx6ZIzm6AFJkCC8ASW4tcDrJk+8ZOacYk+ckbiWGR5lM7SOj1CyEhQx3f6z xVFH/KFl3or8h2qveTcopL7GzfbD7+aBeKaLLKinl+VL8EpfWInokN04bI8QgGtLCXZo qJLzcGRDEKyauWJDKSg9cmFOivFSOlUVUWo5Y9nbP0OjI48U9u+wp2E/fOLRNabq/6tA Aqpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744850751; x=1745455551; 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=Kx5EY5NNpPB6MvS87zqGMc+jEI/M9Fei5OKN+WHLkj4=; b=e9g2VSa9jusRS0Km8r61buqxHD9rLix57S8pJHRYS9sEYjPKPuO5usJ59EgFoLFpi8 /i6DKifge6s/5r8RTlmaCLsPanuORLYoPBHjhuquMjuOZV2HBOQzAafSmHuxNrKNVsN/ upTDUUMmqPP/rpuzGjHaKS5K+o8TCpZjxGGDB+A7yXvv/7oulV6pMJIsMy46mVYELISs Su+NhK2vScoK8PsnlYakAVtWzGTO2iP/dBe48rx03QSMizYAVzCDhbE3/LYbzXkftwek ZOfixK/SBk7b7HUenplyd1b34PdBrO+Weo8rmsnGXutBM0pSZtTdRq+dZS9DlIz2GVRM 9CFQ== X-Forwarded-Encrypted: i=1; AJvYcCVonvIQLRoy8Gn+Fb/vS4iWZuxFohNyunIWLYbwkD8IMonr2oA7EGwnfa2uEDlr5bJaTT/BmKbb+6cqPbc=@vger.kernel.org X-Gm-Message-State: AOJu0YyEFHWPQ8UvIlzioicFY/e4fV5MMBi2QnLxBfArbXTkgx7DrPRZ pdfCcaonlCNSUk+cfpt21k+oYSfSMVz/XO2QAtakwnRWwaDTCuGTuvnLhnbbnw== X-Gm-Gg: ASbGncvXW8AmwGVvKmpiC1Ej/fMbYFd9aHRp23ybkp0TvoRahm1JARqauMNOTrhojtH Jeid/4c2C7AfphmqCWK5nhEwvlCUwjC6k7MRelkcd/ajmUsvhKZoG4BG+GlXU3gFUUYmbwSegCz wx20TMBf79/fIAY/CtMdRapr/mze1p7QVJHgqc9ylNebK0JaRjYeI8mAeIvXqzSh+CLXCht4Jze y1GaHIvyY3QOAPTGSTUsCmpO2VFO0ZQ+ZIzUkpo18Cx7waC4qIEspmtiuLe23FiD8k554MzoiYm 8iPjcuiXIXlEpmtD0sSFvK8Okj5o2VmIF+0/8E6Gp6ZHD3RENUDuhQ+/4/aL+dBP3auvH8dwuL5 ikq6HvA== X-Google-Smtp-Source: AGHT+IFVMDhBoKUlfjJRZUEokbTKsReFRGjGofLVuPnfwfSJ0jFbSb45nYAchbm7ksrY+mhhiMn0wA== X-Received: by 2002:a17:902:e848:b0:220:ce37:e31f with SMTP id d9443c01a7336-22c358d9b59mr57562575ad.17.1744850751704; Wed, 16 Apr 2025 17:45:51 -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-22c33fe4cb9sm20938975ad.211.2025.04.16.17.45.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 17:45:51 -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 12/14] staging: gpib: gpib_ioctl: u64 over uint64_t Date: Thu, 17 Apr 2025 00:45:31 +0000 Message-ID: <20250417004533.86765-13-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 'u64' over 'uint64_t' Signed-off-by: Michael Rubin --- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/gpib/uapi/gpib_ioctl.h b/drivers/staging/gpib/= uapi/gpib_ioctl.h index 2d2a268d8573..0fed5c0fa7f2 100644 --- a/drivers/staging/gpib/uapi/gpib_ioctl.h +++ b/drivers/staging/gpib/uapi/gpib_ioctl.h @@ -18,7 +18,7 @@ struct gpib_board_type_ioctl { =20 /* argument for read/write/command ioctls */ struct gpib_read_write_ioctl { - uint64_t buffer_ptr; + __u64 buffer_ptr; unsigned int requested_transfer_count; unsigned int completed_transfer_count; int end; /* end flag return for reads, end io suppression request for cmd= */ @@ -59,7 +59,7 @@ struct gpib_wait_ioctl { }; =20 struct gpib_online_ioctl { - uint64_t init_data_ptr; + __u64 init_data_ptr; int init_data_length; int online; }; @@ -134,7 +134,7 @@ enum gpib_ioctl { IBRSP =3D _IOWR(GPIB_CODE, 18, struct gpib_serial_poll_ioctl), IBEOS =3D _IOW(GPIB_CODE, 19, struct gpib_eos_ioctl), IBRSV =3D _IOW(GPIB_CODE, 20, __u8), - CFCBASE =3D _IOW(GPIB_CODE, 21, uint64_t), + CFCBASE =3D _IOW(GPIB_CODE, 21, __u64), CFCIRQ =3D _IOW(GPIB_CODE, 22, unsigned int), CFCDMA =3D _IOW(GPIB_CODE, 23, unsigned int), CFCBOARDTYPE =3D _IOW(GPIB_CODE, 24, struct gpib_board_type_ioctl), --=20 2.43.0 From nobody Tue Dec 16 00:22:12 2025 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 9258E1DF725 for ; Thu, 17 Apr 2025 00:45:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850755; cv=none; b=JN1gg/75kaW54Ts6728ZV1fFHaFjGgQhAt5542iX5gcLRm0CY3Ygi9IiegDG9NreNdFHC492vnv6l42fMe3LJO9GerEf/U1RFY5Y4qeS2YEyi5PbKsgHcLT8qEBBYgnkVsr4xf6gc0/OruXzrOQyacFCVQfR4iiZ0lbjVhZhN/k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744850755; c=relaxed/simple; bh=J/2BjloWZckVQhuvMB1uvXaQEomsSVRjTMmjSOb71fc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SYmqk8JumklJarTc2o+lLD9PBD0J/+scq9ONgITCo9OT9r+6dN4YOK+CwOLUGvD6/rtvoQB+kL+mm105zEgDiZvv8pwnEr2bNZmwSSust/WSStO2J49r+jmr+7SKN9NDZJU0cj9uD8/Gs6LoEOa9O0uVFbPDAZ9UhGgnae+TPvs= 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=JI1XL3/f; arc=none smtp.client-ip=209.85.214.180 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="JI1XL3/f" Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-22622ddcc35so3577035ad.2 for ; Wed, 16 Apr 2025 17:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverthere.org; s=google; t=1744850753; x=1745455553; 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=oE4wYBK9Y5cNUsygtOoB0ARoJoNyVY3pBnlsFqh8m6U=; b=JI1XL3/fUCifAGOZLiwZ4pq6Zq4rmkpoXC0MUIEpvCwmEhDfDbLrLhU26F2wa1ewbu a9fGjhept1r0k4iAOoUdi7DEpDzZvJbb9/5JpnLNNskImo5NQn21hkT/cVtK0SFWHvDM 8AKnquH1ZCcl0dU6CvWgY0Qr5t7kSKMSdKNB+FnvvIWJJvg3NmML47qqZoEO46sI3KWL 3XokmkrsAMSqSeGAGJoP0Sl8ugvb6yBiS0oYly0Nukk0AGhHgLFs+/gi8irC5FzOROxc oIW3a4obl8AuMLrpXWgKJANNx8v+ZGul0lgjq+pP2m/pPYVxq60K7XxOFN/nwkY87z10 BRLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744850753; x=1745455553; 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=oE4wYBK9Y5cNUsygtOoB0ARoJoNyVY3pBnlsFqh8m6U=; b=XYwrMEee6Z+sMm5L5M6QlQGaeve5Y7Q4AZeeNk8ZkzApKDxPFGvZk8b1Q0WZUBP0gJ fUlcBrx2cU5j21iegxeqVqZEXHidrDMkk+vSWfHarqqLQ01TCOxTs1YjozB+tdGA+6vx B4HycsiDfPFpRTo02SnUrZgn3NU6xn9kvjFiioB/EuEsUAXIRFNbeF7TWECQwQaYZy5S pavhTKK0ADPTslNeK3ZAjRLhiQLSGTedZJ/3a2EE3HKURso1++XV+bk1ogKdnbDPlPVI X+ze/4ZCoPCq2JXjizf6hi1s5xkWp3WvdOqMLsJq2dF7KytC6ok82ZZ3UtUAorb5Ltw2 lGeQ== X-Forwarded-Encrypted: i=1; AJvYcCVBA7jLXOtvpsI0a/XPeKam3zv7Pn/I+1Spbwk9s2oNIziunrAec3/fKjfz0LBaOFm7vCgh/GZxPZ79uCU=@vger.kernel.org X-Gm-Message-State: AOJu0Yynw/Y7RwHe1OZ8q1kxtgS/W97MxFPzu+aUIfsq/lStMVguhgX3 gMhfLJCVXSaw8eVVKKccmCDcsepqs72bZOT4EDyBOotF+YXoT+gyr/gURmE0Wg== X-Gm-Gg: ASbGncvX/ZmkF0J/+iAbaijCVWC2miFsQnFFhJypGAQ5ohMY+j2J7fz/mjObzKtDLXj 5AJZFEc8776zsDlxLZFuU8VvO2clCv9sMk1JQi+b7z737+Uu55ENAWOVZLnLH1MxhkIrwtFl6cg v2zQy5SZ9WOAIL2ze3LCEaKf/WZspAeCzKqJA3qZ4pLnZRf4iW7cSzTZ10jyiz8koYwpw0t+5mP rrZ1mDhkGJ8wuxFFkeu8WYFkJ2YHEnUGOWeH8YCYMA47HLxvwzmg237jdtK+/+qZRqRlTmJs40b Yk5bNBmsZhhLOwqHBJ2jDHVBYCcnAzdHhLoTgyBoBkTnkK0k1zvW2lJ5Ulz3W7ZwDnGhLjj9IzU wI1ed2Q== X-Google-Smtp-Source: AGHT+IGmzmZrkDFcQ2LokFGzzovBf64YFT1R45GKZ3897zaZpcrc8bUJ8p+qhlmw+686pWWDCMQedQ== X-Received: by 2002:a17:902:d50e:b0:224:c76:5e57 with SMTP id d9443c01a7336-22c359734cemr60143045ad.39.1744850752887; Wed, 16 Apr 2025 17:45:52 -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-22c33fcc24csm20887985ad.183.2025.04.16.17.45.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 17:45:52 -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 13/14] staging: gpib: lpvo_usb_gpib: u8 over uint8_t Date: Thu, 17 Apr 2025 00:45:32 +0000 Message-ID: <20250417004533.86765-14-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 --- drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c b/drivers/s= taging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c index 494cfa21b938..19127ee906c2 100644 --- a/drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c +++ b/drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c @@ -706,7 +706,7 @@ static int usb_gpib_line_status(const struct gpib_board= *board) =20 /* parallel_poll */ =20 -static int usb_gpib_parallel_poll(struct gpib_board *board, uint8_t *resul= t) +static int usb_gpib_parallel_poll(struct gpib_board *board, u8 *result) { /* * request parallel poll asserting ATN | EOI; @@ -999,7 +999,7 @@ static int usb_gpib_write(struct gpib_board *board, /* parallel_poll configure */ =20 static void usb_gpib_parallel_poll_configure(struct gpib_board *board, - uint8_t configuration) + u8 configuration) { } =20 @@ -1033,13 +1033,13 @@ static int usb_gpib_secondary_address(struct gpib_b= oard *board, =20 /* serial_poll_response */ =20 -static void usb_gpib_serial_poll_response(struct gpib_board *board, uint8_= t status) +static void usb_gpib_serial_poll_response(struct gpib_board *board, u8 sta= tus) { } =20 /* serial_poll_status */ =20 -static uint8_t usb_gpib_serial_poll_status(struct gpib_board *board) +static u8 usb_gpib_serial_poll_status(struct gpib_board *board) { return 0; } --=20 2.43.0 From nobody Tue Dec 16 00:22:12 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 B6CC21E5213 for ; Thu, 17 Apr 2025 00:45:54 +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=1744850756; cv=none; b=nb7j29vashec9gNd+PaIRpCzbK/xWmrXYheIc3DP3LpHTgA/ygLwNJA+NoydU2XpWzUso4ocg53Dh/FGYGZ3NTz/lQuZ2Ug8XQvCivXWb3O/QEuhpTeBvOvgYWm5uQnQk9g8edBVujJRxg2LPaUEh77kDXeXDRSlyMSj+PzJ/Hg= 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=OoioDZ2W; 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="OoioDZ2W" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-7398d65476eso208554b3a.1 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=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=xCBQK1D7ftGWqyhzo3vdXyAI8mTZHY6bLe9FdeFPrbc=; b=OoioDZ2WEb1oWTDa0b5gOCy1qdnRYd24gd8QZfApqekmpurKcNXj7ZkdrS2JGz2z8c tlYFJbq+RUQWNarSk4/QeEPl/t71dUDP28F6Ancqhv1aD5zVXyeXBSGmVulAwh47pcJw Rzx6NqQ0+FakH5z6KjLWazpNeg/ohEjh8NTJ3v43k4n9Vo29tB56gYb45FauNTKzAGdk Nb8YHeezwCV+Mx++CmHK4xJ62kR/vlLqEhr4f3Zw+np0dkdoc+1hTK5anJK2ko9CqJBU eefnA3R88QQdWMIvj/Qzwl6zfyqISepPPOtGuh6GIg6GhKJvZHANS5Lea+G3WBCz6PYC /vcQ== 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=EJ3ptUeNzjum8Ele9C9UDqafhkPVffQRv0igoh3VyCEK7AP9lg/XfpOlsRylFUrc+l hx1npYrBFj3DSu/HcaOoZIgzFUh1/Grz414FIqRfO/4/2Sjl4/D7lz43FYUCntc+n78x jPq1MQU/I9obySGi5evDvdXK5leT/3SEXMLRrty8XPPXCEehKEBVC7lumTbER1Yp3xBX IyOj6ztGnCOk0tMuBACMysX5jgJhr3QYH4vSMUzOFMJ1lhQUvJzQHzHSwpeNryuliNDl ken+ebgDlyNGcgtYmkwltftISQoWfJnEF3w0tQTw1qJSRd97DFkjGosRuvVf0eW0GrMV zEVw== X-Forwarded-Encrypted: i=1; AJvYcCX3eROlDCPhZyftjbxxE7YwLybHvjLZqydldeXZwKEvrn39FxvgYKjDXTNgg2fOzKktjo8GP5Itbd5GP+U=@vger.kernel.org X-Gm-Message-State: AOJu0Yx6OHNkcRX3luqPtUXweeO/haM+gdvCfcXq2dg/NcKmrYtsN0XD qIXj+RfrBAdVQszzJwRfj8OAhyL+SqkSBahzcj+Ilnxz4DdxxDDynL7/5c5JWGUpdYpVynKWqkI = X-Gm-Gg: ASbGncuWtuszUE8b0SCFJeUDgxstG9XSc6m6qbyXRLoCxwYCkv8WK/acj0tBqIr5vXU 4hKztep1LyTACvc9Mhf0WMKj3iiMC3gjDHED3FLvYQ83tCVzKuz76JECUqR86sM5umuCWNbqh2N NQGhOVGIQf0SY3SCOypMu61ogb4NMZ0Mc2lpYi0J5UvG+Dz+GjJk4KCHaRvFhmF9fXe3EWroEWy IJvls/fGwS/uHcu0Ndave3vdNgMbhA9ar1EmrypowIUtEHlA2Ej0z3dsjYYdCZq7OeUjcdfxgyF bAlllKaEvqze1uF9lcqOy9RmXAXsjTTejTGrHAzC968Ivo5JYMkG8Saox1jiGMGbreNi8b9PfJy L9A28dg== 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-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 --- 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; } =20 -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 =3D 0; struct nec7210_priv *nec_priv =3D &tnt_priv->nec7210_priv; @@ -275,7 +275,7 @@ static void tnt4882_release_holdoff(struct gpib_board *= board, struct tnt4882_pri } } =20 -static int tnt4882_accel_read(struct gpib_board *board, uint8_t *buffer, s= ize_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 =3D 0; @@ -450,7 +450,7 @@ static int write_wait(struct gpib_board *board, struct = tnt4882_priv *tnt_priv, return 0; } =20 -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 leng= th, int send_eoi, int send_commands, size_t *bytes_written) { size_t count =3D 0; @@ -542,13 +542,13 @@ static int generic_write(struct gpib_board *board, ui= nt8_t *buffer, size_t lengt return retval; } =20 -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); } =20 -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 le= ngth, 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) } =20 // 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 lengt= h, int *end, size_t *bytes_read) { struct tnt4882_priv *priv =3D board->private_data; @@ -615,7 +615,7 @@ static int tnt4882_read(struct gpib_board *board, uint8= _t *buffer, size_t length return retval; } =20 -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 leng= th, int send_eoi, size_t *bytes_written) { struct tnt4882_priv *priv =3D board->private_data; @@ -623,7 +623,7 @@ static int tnt4882_write(struct gpib_board *board, uint= 8_t *buffer, size_t lengt return nec7210_write(board, &priv->nec7210_priv, buffer, length, send_eoi= , bytes_written); } =20 -static int tnt4882_command_unaccel(struct gpib_board *board, uint8_t *buff= er, +static int tnt4882_command_unaccel(struct gpib_board *board, u8 *buffer, size_t length, size_t *bytes_written) { struct tnt4882_priv *priv =3D board->private_data; @@ -674,7 +674,7 @@ static void tnt4882_remote_enable(struct gpib_board *bo= ard, int enable) nec7210_remote_enable(board, &priv->nec7210_priv, enable); } =20 -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 c= ompare_8_bits) { struct tnt4882_priv *priv =3D board->private_data; =20 @@ -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, ena= ble); } =20 -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 =3D board->private_data; =20 @@ -738,7 +738,7 @@ static int tnt4882_parallel_poll(struct gpib_board *boa= rd, uint8_t *result) } } =20 -static void tnt4882_parallel_poll_configure(struct gpib_board *board, uint= 8_t config) +static void tnt4882_parallel_poll_configure(struct gpib_board *board, u8 c= onfig) { struct tnt4882_priv *priv =3D board->private_data; =20 @@ -767,14 +767,14 @@ static void tnt4882_parallel_poll_response(struct gpi= b_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 stat= us) { struct tnt4882_priv *priv =3D board->private_data; =20 nec7210_serial_poll_response(board, &priv->nec7210_priv, status); } =20 -static void tnt4882_serial_poll_response2(struct gpib_board *board, uint8_= t status, +static void tnt4882_serial_poll_response2(struct gpib_board *board, u8 sta= tus, int new_reason_for_service) { struct tnt4882_priv *priv =3D board->private_data; @@ -810,7 +810,7 @@ static void tnt4882_serial_poll_response2(struct gpib_b= oard *board, uint8_t stat spin_unlock_irqrestore(&board->spinlock, flags); } =20 -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 =3D board->private_data; =20 --=20 2.43.0