]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: gpib: fix address space mixup
authorArnd Bergmann <arnd@arndb.de>
Fri, 13 Dec 2024 06:49:51 +0000 (07:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2024 15:44:15 +0000 (16:44 +0100)
commitbaf8855c916007a8a372576b65492316f43ed60b
treebf2918f69c5ad7c7e07ba2671438733ec9fa96aa
parentfec866a00360a19a1f4c8e6bd123a4d1b2d5a8ee
staging: gpib: fix address space mixup

Throughout the gpib drivers, a 'void *' struct member is used in place
of either port numbers or __iomem pointers, which leads to lots of extra
type casts, sparse warnings and less portable code.

Split the struct member in two separate ones with the correct types,
so each driver can pick which one to use.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/all/f10e976e-7a04-4454-b38d-39cd18f142da@roeck-us.net/
Link: https://lore.kernel.org/r/20241213064959.1045243-3-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
22 files changed:
drivers/staging/gpib/agilent_82350b/agilent_82350b.c
drivers/staging/gpib/cb7210/cb7210.c
drivers/staging/gpib/cb7210/cb7210.h
drivers/staging/gpib/cec/cec_gpib.c
drivers/staging/gpib/common/gpib_os.c
drivers/staging/gpib/eastwood/fluke_gpib.c
drivers/staging/gpib/eastwood/fluke_gpib.h
drivers/staging/gpib/fmh_gpib/fmh_gpib.c
drivers/staging/gpib/fmh_gpib/fmh_gpib.h
drivers/staging/gpib/hp_82335/hp82335.c
drivers/staging/gpib/hp_82341/hp_82341.c
drivers/staging/gpib/include/gpib_types.h
drivers/staging/gpib/include/nec7210.h
drivers/staging/gpib/include/tms9914.h
drivers/staging/gpib/ines/ines.h
drivers/staging/gpib/ines/ines_gpib.c
drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
drivers/staging/gpib/nec7210/nec7210.c
drivers/staging/gpib/pc2/pc2_gpib.c
drivers/staging/gpib/tms9914/tms9914.c
drivers/staging/gpib/tnt4882/mite.h
drivers/staging/gpib/tnt4882/tnt4882_gpib.c