Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 302e994d authored by Logan Gunthorpe's avatar Logan Gunthorpe Committed by Jon Mason
Browse files

NTB: switchtec: Export class symbol for use in upper layer driver



We export the class pointer symbol and add an extern define in the
Switchtec header file.

Signed-off-by: default avatarLogan Gunthorpe <logang@deltatee.com>
Reviewed-by: default avatarStephen Bates <sbates@raithlin.com>
Reviewed-by: default avatarKurt Schwemmer <kurt.schwemmer@microsemi.com>
Acked-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent 5a1c269f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -33,9 +33,11 @@ module_param(max_devices, int, 0644);
MODULE_PARM_DESC(max_devices, "max number of switchtec device instances");

static dev_t switchtec_devt;
static struct class *switchtec_class;
static DEFINE_IDA(switchtec_minor_ida);

struct class *switchtec_class;
EXPORT_SYMBOL_GPL(switchtec_class);

enum mrpc_state {
	MRPC_IDLE = 0,
	MRPC_QUEUED,
+2 −0
Original line number Diff line number Diff line
@@ -276,4 +276,6 @@ static inline struct switchtec_dev *to_stdev(struct device *dev)
	return container_of(dev, struct switchtec_dev, dev);
}

extern struct class *switchtec_class;

#endif