]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: gpib: Destage gpib
authorDave Penkler <dpenkler@gmail.com>
Mon, 17 Nov 2025 14:40:21 +0000 (15:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Nov 2025 16:52:11 +0000 (17:52 +0100)
Move the gpib drivers out of staging and into the "real" part of the
kernel.  This entails:

 - Remove the gpib Kconfig menu and Makefile build rule from staging.
 - Remove gpib/uapi from the header file search path in subdir-ccflags
   of the gpib Makefile
 - move the gpib/uapi files to include/uapi/linux
 - Move the gpib tree out of staging to drivers.
 - Remove the word "Linux" from the gpib Kconfig file.
 - Add the gpib Kconfig menu and Makefile build rule to drivers

Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Link: https://patch.msgid.link/20251117144021.23569-5-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
73 files changed:
MAINTAINERS
drivers/Kconfig
drivers/Makefile
drivers/gpib/Kconfig [moved from drivers/staging/gpib/Kconfig with 97% similarity]
drivers/gpib/Makefile [moved from drivers/staging/gpib/Makefile with 92% similarity]
drivers/gpib/TODO [moved from drivers/staging/gpib/TODO with 100% similarity]
drivers/gpib/agilent_82350b/Makefile [moved from drivers/staging/gpib/agilent_82350b/Makefile with 100% similarity]
drivers/gpib/agilent_82350b/agilent_82350b.c [moved from drivers/staging/gpib/agilent_82350b/agilent_82350b.c with 100% similarity]
drivers/gpib/agilent_82350b/agilent_82350b.h [moved from drivers/staging/gpib/agilent_82350b/agilent_82350b.h with 100% similarity]
drivers/gpib/agilent_82357a/Makefile [moved from drivers/staging/gpib/agilent_82357a/Makefile with 100% similarity]
drivers/gpib/agilent_82357a/agilent_82357a.c [moved from drivers/staging/gpib/agilent_82357a/agilent_82357a.c with 100% similarity]
drivers/gpib/agilent_82357a/agilent_82357a.h [moved from drivers/staging/gpib/agilent_82357a/agilent_82357a.h with 100% similarity]
drivers/gpib/cb7210/Makefile [moved from drivers/staging/gpib/cb7210/Makefile with 100% similarity]
drivers/gpib/cb7210/cb7210.c [moved from drivers/staging/gpib/cb7210/cb7210.c with 100% similarity]
drivers/gpib/cb7210/cb7210.h [moved from drivers/staging/gpib/cb7210/cb7210.h with 100% similarity]
drivers/gpib/cec/Makefile [moved from drivers/staging/gpib/cec/Makefile with 100% similarity]
drivers/gpib/cec/cec.h [moved from drivers/staging/gpib/cec/cec.h with 100% similarity]
drivers/gpib/cec/cec_gpib.c [moved from drivers/staging/gpib/cec/cec_gpib.c with 100% similarity]
drivers/gpib/common/Makefile [moved from drivers/staging/gpib/common/Makefile with 100% similarity]
drivers/gpib/common/gpib_os.c [moved from drivers/staging/gpib/common/gpib_os.c with 100% similarity]
drivers/gpib/common/iblib.c [moved from drivers/staging/gpib/common/iblib.c with 100% similarity]
drivers/gpib/common/ibsys.h [moved from drivers/staging/gpib/common/ibsys.h with 100% similarity]
drivers/gpib/eastwood/Makefile [moved from drivers/staging/gpib/eastwood/Makefile with 100% similarity]
drivers/gpib/eastwood/fluke_gpib.c [moved from drivers/staging/gpib/eastwood/fluke_gpib.c with 100% similarity]
drivers/gpib/eastwood/fluke_gpib.h [moved from drivers/staging/gpib/eastwood/fluke_gpib.h with 100% similarity]
drivers/gpib/fmh_gpib/Makefile [moved from drivers/staging/gpib/fmh_gpib/Makefile with 100% similarity]
drivers/gpib/fmh_gpib/fmh_gpib.c [moved from drivers/staging/gpib/fmh_gpib/fmh_gpib.c with 100% similarity]
drivers/gpib/fmh_gpib/fmh_gpib.h [moved from drivers/staging/gpib/fmh_gpib/fmh_gpib.h with 100% similarity]
drivers/gpib/gpio/Makefile [moved from drivers/staging/gpib/gpio/Makefile with 100% similarity]
drivers/gpib/gpio/gpib_bitbang.c [moved from drivers/staging/gpib/gpio/gpib_bitbang.c with 100% similarity]
drivers/gpib/hp_82335/Makefile [moved from drivers/staging/gpib/hp_82335/Makefile with 100% similarity]
drivers/gpib/hp_82335/hp82335.c [moved from drivers/staging/gpib/hp_82335/hp82335.c with 100% similarity]
drivers/gpib/hp_82335/hp82335.h [moved from drivers/staging/gpib/hp_82335/hp82335.h with 100% similarity]
drivers/gpib/hp_82341/Makefile [moved from drivers/staging/gpib/hp_82341/Makefile with 100% similarity]
drivers/gpib/hp_82341/hp_82341.c [moved from drivers/staging/gpib/hp_82341/hp_82341.c with 100% similarity]
drivers/gpib/hp_82341/hp_82341.h [moved from drivers/staging/gpib/hp_82341/hp_82341.h with 100% similarity]
drivers/gpib/include/amcc5920.h [moved from drivers/staging/gpib/include/amcc5920.h with 100% similarity]
drivers/gpib/include/amccs5933.h [moved from drivers/staging/gpib/include/amccs5933.h with 100% similarity]
drivers/gpib/include/gpibP.h [moved from drivers/staging/gpib/include/gpibP.h with 96% similarity]
drivers/gpib/include/gpib_cmd.h [moved from drivers/staging/gpib/include/gpib_cmd.h with 100% similarity]
drivers/gpib/include/gpib_pci_ids.h [moved from drivers/staging/gpib/include/gpib_pci_ids.h with 100% similarity]
drivers/gpib/include/gpib_proto.h [moved from drivers/staging/gpib/include/gpib_proto.h with 100% similarity]
drivers/gpib/include/gpib_state_machines.h [moved from drivers/staging/gpib/include/gpib_state_machines.h with 100% similarity]
drivers/gpib/include/gpib_types.h [moved from drivers/staging/gpib/include/gpib_types.h with 99% similarity]
drivers/gpib/include/nec7210.h [moved from drivers/staging/gpib/include/nec7210.h with 100% similarity]
drivers/gpib/include/nec7210_registers.h [moved from drivers/staging/gpib/include/nec7210_registers.h with 100% similarity]
drivers/gpib/include/plx9050.h [moved from drivers/staging/gpib/include/plx9050.h with 100% similarity]
drivers/gpib/include/quancom_pci.h [moved from drivers/staging/gpib/include/quancom_pci.h with 100% similarity]
drivers/gpib/include/tms9914.h [moved from drivers/staging/gpib/include/tms9914.h with 100% similarity]
drivers/gpib/include/tnt4882_registers.h [moved from drivers/staging/gpib/include/tnt4882_registers.h with 100% similarity]
drivers/gpib/ines/Makefile [moved from drivers/staging/gpib/ines/Makefile with 100% similarity]
drivers/gpib/ines/ines.h [moved from drivers/staging/gpib/ines/ines.h with 100% similarity]
drivers/gpib/ines/ines_gpib.c [moved from drivers/staging/gpib/ines/ines_gpib.c with 100% similarity]
drivers/gpib/lpvo_usb_gpib/Makefile [moved from drivers/staging/gpib/lpvo_usb_gpib/Makefile with 100% similarity]
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c [moved from drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c with 100% similarity]
drivers/gpib/nec7210/Makefile [moved from drivers/staging/gpib/nec7210/Makefile with 100% similarity]
drivers/gpib/nec7210/board.h [moved from drivers/staging/gpib/nec7210/board.h with 100% similarity]
drivers/gpib/nec7210/nec7210.c [moved from drivers/staging/gpib/nec7210/nec7210.c with 100% similarity]
drivers/gpib/ni_usb/Makefile [moved from drivers/staging/gpib/ni_usb/Makefile with 100% similarity]
drivers/gpib/ni_usb/ni_usb_gpib.c [moved from drivers/staging/gpib/ni_usb/ni_usb_gpib.c with 100% similarity]
drivers/gpib/ni_usb/ni_usb_gpib.h [moved from drivers/staging/gpib/ni_usb/ni_usb_gpib.h with 100% similarity]
drivers/gpib/pc2/Makefile [moved from drivers/staging/gpib/pc2/Makefile with 100% similarity]
drivers/gpib/pc2/pc2_gpib.c [moved from drivers/staging/gpib/pc2/pc2_gpib.c with 100% similarity]
drivers/gpib/tms9914/Makefile [moved from drivers/staging/gpib/tms9914/Makefile with 100% similarity]
drivers/gpib/tms9914/tms9914.c [moved from drivers/staging/gpib/tms9914/tms9914.c with 100% similarity]
drivers/gpib/tnt4882/Makefile [moved from drivers/staging/gpib/tnt4882/Makefile with 100% similarity]
drivers/gpib/tnt4882/mite.c [moved from drivers/staging/gpib/tnt4882/mite.c with 100% similarity]
drivers/gpib/tnt4882/mite.h [moved from drivers/staging/gpib/tnt4882/mite.h with 100% similarity]
drivers/gpib/tnt4882/tnt4882_gpib.c [moved from drivers/staging/gpib/tnt4882/tnt4882_gpib.c with 100% similarity]
drivers/staging/Kconfig
drivers/staging/Makefile
include/uapi/linux/gpib.h [moved from drivers/staging/gpib/uapi/gpib.h with 100% similarity]
include/uapi/linux/gpib_ioctl.h [moved from drivers/staging/gpib/uapi/gpib_ioctl.h with 100% similarity]

index df07d1a3c28d048e14a0f65c9f9ff01cc260013a..a6055a910be64e20c76f058676c207ae72fab98f 100644 (file)
@@ -10628,7 +10628,9 @@ F:      drivers/platform/x86/gpd-pocket-fan.c
 GPIB DRIVERS
 M:     Dave Penkler <dpenkler@gmail.com>
 S:     Maintained
-F:     drivers/staging/gpib/
+F:     drivers/gpib/
+F:     include/uapi/linux/gpib.h
+F:     include/uapi/linux/gpib_ioctl.h
 
 GPIO ACPI SUPPORT
 M:     Mika Westerberg <westeri@kernel.org>
index 4915a63866b0165940208c83b568e2e67c09523b..01602581b88060164866bed210c97397ba357174 100644 (file)
@@ -161,6 +161,8 @@ source "drivers/greybus/Kconfig"
 
 source "drivers/comedi/Kconfig"
 
+source "drivers/gpib/Kconfig"
+
 source "drivers/staging/Kconfig"
 
 source "drivers/platform/Kconfig"
index 8e1ffa4358d5f1aadb0b1559ba3b41b44de6daa4..d275b1526cdd17b40073915d31c1a6ca346b8855 100644 (file)
@@ -150,6 +150,7 @@ obj-$(CONFIG_VHOST_IOTLB)   += vhost/
 obj-$(CONFIG_VHOST)            += vhost/
 obj-$(CONFIG_GREYBUS)          += greybus/
 obj-$(CONFIG_COMEDI)           += comedi/
+obj-$(CONFIG_GPIB)             += gpib/
 obj-$(CONFIG_STAGING)          += staging/
 obj-y                          += platform/
 
similarity index 97%
rename from drivers/staging/gpib/Kconfig
rename to drivers/gpib/Kconfig
index aa01538d5bebb9e675427c1d047d02c8b7502242..eeb50956ce85c66be7d17e3da3f3662ecf8946a1 100644 (file)
@@ -1,10 +1,10 @@
 # SPDX-License-Identifier: GPL-2.0
 menuconfig GPIB
-       tristate "Linux GPIB drivers"
+       tristate "GPIB drivers"
        help
-         Enable support for GPIB cards and dongles for Linux.  GPIB
-         is the General Purpose Interface Bus which conforms to the
-         IEEE488 standard.
+         Enable support for GPIB cards and dongles.  GPIB is the
+         General Purpose Interface Bus which conforms to the IEEE488
+         standard.
 
          This set of drivers can be used with the corresponding user
          space library that can be found on Sourceforge under linux-gpib.
similarity index 92%
rename from drivers/staging/gpib/Makefile
rename to drivers/gpib/Makefile
index d0e88f5c08444ddb477e26f40fa26dcdc20bcd92..2d44fed2a743f83d2e90d67818d10c267db25b61 100644 (file)
@@ -1,5 +1,5 @@
 
-subdir-ccflags-y += -I$(src)/include -I$(src)/uapi
+subdir-ccflags-y += -I$(src)/include
 
 obj-$(CONFIG_GPIB_AGILENT_82350B) += agilent_82350b/
 obj-$(CONFIG_GPIB_AGILENT_82357A) += agilent_82357a/
similarity index 100%
rename from drivers/staging/gpib/TODO
rename to drivers/gpib/TODO
similarity index 96%
rename from drivers/staging/gpib/include/gpibP.h
rename to drivers/gpib/include/gpibP.h
index 1b27f37e0ba07d13d686d6c6a037fc5c9bb88937..e3938ada3e0d6c12911c8a40fd338ea2b1bd7164 100644 (file)
@@ -12,8 +12,8 @@
 #include "gpib_types.h"
 #include "gpib_proto.h"
 #include "gpib_cmd.h"
-#include "gpib.h"
-#include "gpib_ioctl.h"
+#include <linux/gpib.h>
+#include <linux/gpib_ioctl.h>
 
 #include <linux/fs.h>
 #include <linux/interrupt.h>
similarity index 99%
rename from drivers/staging/gpib/include/gpib_types.h
rename to drivers/gpib/include/gpib_types.h
index 998abb379749f07d37560e4fa4ee45e21d5abf3e..5a0978ae27e791f51b5c323761731bf5ee71f7c0 100644 (file)
@@ -8,7 +8,7 @@
 #define _GPIB_TYPES_H
 
 #ifdef __KERNEL__
-#include "gpib.h"
+#include <linux/gpib.h>
 #include <linux/atomic.h>
 #include <linux/device.h>
 #include <linux/mutex.h>
index 075e775d3868b3449922a25df1f79dec5a83a42d..2f92cd698bef6d501702dad7413a6fc5b42071b4 100644 (file)
@@ -48,6 +48,4 @@ source "drivers/staging/axis-fifo/Kconfig"
 
 source "drivers/staging/vme_user/Kconfig"
 
-source "drivers/staging/gpib/Kconfig"
-
 endif # STAGING
index e681e403509ce271d388a5b0e70b296c41474f40..f5b8876aa536fdd5afcf8214eaf148ed2c100bb6 100644 (file)
@@ -13,4 +13,3 @@ obj-$(CONFIG_MOST)            += most/
 obj-$(CONFIG_GREYBUS)          += greybus/
 obj-$(CONFIG_BCM2835_VCHIQ)    += vc04_services/
 obj-$(CONFIG_XIL_AXIS_FIFO)    += axis-fifo/
-obj-$(CONFIG_GPIB)             += gpib/