public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
* [Patch v1 00/21] staging: gpib: Removing typedefs for ioctl API
@ 2025-04-09  5:58 Michael Rubin
  2025-04-09  5:58 ` [Patch v1 01/21] staging: gpib: Using struct gpib_board_type_ioctl Michael Rubin
                   ` (20 more replies)
  0 siblings, 21 replies; 25+ messages in thread
From: Michael Rubin @ 2025-04-09  5:58 UTC (permalink / raw)
  To: gregkh, dpenkler; +Cc: linux-staging, linux-kernel, Michael Rubin

Moving typedefs to explicit structs as dictated by the Linux code style.
Also removing typedefs for fundamental types as per Linux code style.

Reported by checkpatch.pl

* Patch 1 - Patch 16: Removes typedef for explicit structs.

	In general, a pointer, or a struct that has elements that can
	reasonably be directly accessed should never be a typedef.

* Patch 17 - Patch 21

	Removing typedefs of fundamental types

Michael Rubin (21):
  staging: gpib: Using struct gpib_board_type_ioctl
  staging: gpib: Using struct gpib_read_write_ioctl
  staging: gpib: Using struct gpib_open_dev_ioctl
  staging: gpib: Using struct gpib_close_dev_ioctl
  staging: gpib: Using struct gpib_serial_poll_ioctl
  staging: gpib: Using struct gpib_eos_ioctl
  staging: gpib: Using struct gpib_wait_ioctl
  staging: gpib: Using struct gpib_online_ioctl
  staging: gpib: Using struct gpib_spoll_bytes_ioctl
  staging: gpib: Using struct gpib_board_info_ioctl
  staging: gpib: Using struct gpib_select_pci_ioctl
  staging: gpib: Using struct gpib_ppoll_config_ioctl`
  staging: gpib: Using struct gpib_pad_ioctl
  staging: gpib: Using struct gpib_sad_ioctl
  staging: gpib: Using gpib_select_device_path_ioctl
  staging: gpib: Using struct gpib_request_service2
  staging: gpib: event_ioctl_t now short
  staging: gpib: rsc_ioctl_t now int
  staging: gpib: t1_delay_ioctl_t now unsigned int
  staging: gpib: autospoll_ioctl_t now short
  staging: gpib: local_ppoll_mode_ioctl_t now short

 drivers/staging/gpib/common/gpib_os.c  |  58 ++++++------
 drivers/staging/gpib/uapi/gpib_ioctl.h | 118 ++++++++++++-------------
 2 files changed, 86 insertions(+), 90 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2025-04-09  9:42 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-09  5:58 [Patch v1 00/21] staging: gpib: Removing typedefs for ioctl API Michael Rubin
2025-04-09  5:58 ` [Patch v1 01/21] staging: gpib: Using struct gpib_board_type_ioctl Michael Rubin
2025-04-09  8:10   ` Dan Carpenter
2025-04-09  8:56     ` Dave Penkler
2025-04-09  9:42       ` Dan Carpenter
2025-04-09  5:58 ` [Patch v1 02/21] staging: gpib: Using struct gpib_read_write_ioctl Michael Rubin
2025-04-09  5:58 ` [Patch v1 03/21] staging: gpib: Using struct gpib_open_dev_ioctl Michael Rubin
2025-04-09  5:58 ` [Patch v1 04/21] staging: gpib: Using struct gpib_close_dev_ioctl Michael Rubin
2025-04-09  5:58 ` [Patch v1 05/21] staging: gpib: Using struct gpib_serial_poll_ioctl Michael Rubin
2025-04-09  5:58 ` [Patch v1 06/21] staging: gpib: Using struct gpib_eos_ioctl Michael Rubin
2025-04-09  5:58 ` [Patch v1 07/21] staging: gpib: Using struct gpib_wait_ioctl Michael Rubin
2025-04-09  5:58 ` [Patch v1 08/21] staging: gpib: Using struct gpib_online_ioctl Michael Rubin
2025-04-09  5:58 ` [Patch v1 09/21] staging: gpib: Using struct gpib_spoll_bytes_ioctl Michael Rubin
2025-04-09  5:58 ` [Patch v1 10/21] staging: gpib: Using struct gpib_board_info_ioctl Michael Rubin
2025-04-09  5:58 ` [Patch v1 11/21] staging: gpib: Using struct gpib_select_pci_ioctl Michael Rubin
2025-04-09  5:58 ` [Patch v1 12/21] staging: gpib: Using struct gpib_ppoll_config_ioctl` Michael Rubin
2025-04-09  5:58 ` [Patch v1 13/21] staging: gpib: Using struct gpib_pad_ioctl Michael Rubin
2025-04-09  5:58 ` [Patch v1 14/21] staging: gpib: Using struct gpib_sad_ioctl Michael Rubin
2025-04-09  5:58 ` [Patch v1 15/21] staging: gpib: Using gpib_select_device_path_ioctl Michael Rubin
2025-04-09  5:58 ` [Patch v1 16/21] staging: gpib: Using struct gpib_request_service2 Michael Rubin
2025-04-09  5:58 ` [Patch v1 17/21] staging: gpib: event_ioctl_t now short Michael Rubin
2025-04-09  5:59 ` [Patch v1 18/21] staging: gpib: rsc_ioctl_t now int Michael Rubin
2025-04-09  5:59 ` [Patch v1 19/21] staging: gpib: t1_delay_ioctl_t now unsigned int Michael Rubin
2025-04-09  5:59 ` [Patch v1 20/21] staging: gpib: autospoll_ioctl_t now short Michael Rubin
2025-04-09  5:59 ` [Patch v1 21/21] staging: gpib: local_ppoll_mode_ioctl_t " Michael Rubin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox