]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: gpib: Make static, reduce fwd declarations
authorDave Penkler <dpenkler@gmail.com>
Wed, 22 Jan 2025 10:38:59 +0000 (11:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Feb 2025 15:08:47 +0000 (16:08 +0100)
commit8418753187ba216f8931432dd8a6ee2f23977ecd
tree7797dfb2362a2cb8a14a0efe255ab404b9db2dfc
parent2f548210a5a5d4cb5f20af39b684a9f6de58cd0e
staging: gpib: Make static, reduce fwd declarations

A number of drivers were unnecessarily not declaring their entry
points as static.

Declare them as static.

In order to reduce the number of forward declarations the gpib
interface structure initializations have been moved to after the
code of the entry points that they use. This also makes the
structure of the drivers to be more consistent between them.

Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20250122103859.25499-3-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
12 files changed:
drivers/staging/gpib/agilent_82350b/agilent_82350b.c
drivers/staging/gpib/agilent_82350b/agilent_82350b.h
drivers/staging/gpib/cb7210/cb7210.c
drivers/staging/gpib/cb7210/cb7210.h
drivers/staging/gpib/cec/cec.h
drivers/staging/gpib/cec/cec_gpib.c
drivers/staging/gpib/hp_82335/hp82335.c
drivers/staging/gpib/hp_82335/hp82335.h
drivers/staging/gpib/hp_82341/hp_82341.c
drivers/staging/gpib/hp_82341/hp_82341.h
drivers/staging/gpib/pc2/pc2_gpib.c
drivers/staging/gpib/tnt4882/tnt4882_gpib.c