Permalink
Browse files

sbp-target: Move to a single source/header file for mainline

This patch converts drivers/target/sbp/ to use a single sbp_target.[c,h]
source/header file following mainline convention for new target fabric
drivers.  Make as many functions as possible statically defined and add
inline protypes where necessary.

This patch also renames the sbp-target config entry from:

    FIREWIRE_SBP_TARGET -> SBP_TARGET

and also renames the final generated module name from:

    fireware-sbp-target.ko -> sbp_target.ko

Cc: Chris Boot <bootc@bootc.net>
Cc: Andy Grover <agrover@redhat.com>
Cc: Clemens Ladisch <clemens@ladisch.de>
Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
  • Loading branch information...
nablio3000 committed Apr 14, 2012
1 parent 35523a5 commit eea1018e09c3c1762ba1af8bcb7b9f4d524a7e54
View
@@ -28,4 +28,4 @@ obj-$(CONFIG_TCM_FC) += tcm_fc/
obj-$(CONFIG_ISCSI_TARGET) += iscsi/
obj-$(CONFIG_TCM_VHOST) += tcm_vhost/
obj-$(CONFIG_TARGET_USB_GADGET) += usb-gadget/
obj-$(CONFIG_FIREWIRE_SBP_TARGET) += sbp/
obj-$(CONFIG_SBP_TARGET) += sbp/
@@ -1,5 +1,4 @@
config FIREWIRE_SBP_TARGET
config SBP_TARGET
tristate "FireWire SBP-2 fabric module"
depends on FIREWIRE && EXPERIMENTAL
help
@@ -9,5 +8,4 @@ config FIREWIRE_SBP_TARGET
many Apple computers.
To compile this driver as a module, say M here: The module will be
called firewire-sbp-target.
called sbp-target.
@@ -1,11 +1 @@
firewire-sbp-target-y += \
sbp_configfs.o \
sbp_fabric.o \
sbp_login.o \
sbp_management_agent.o \
sbp_scsi_cmnd.o \
sbp_target_agent.o
obj-$(CONFIG_FIREWIRE_SBP_TARGET) += firewire-sbp-target.o
obj-$(CONFIG_SBP_TARGET) += sbp_target.o
Oops, something went wrong.

0 comments on commit eea1018

Please sign in to comment.