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

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
...@@ -33,9 +33,11 @@ module_param(max_devices, int, 0644); ...@@ -33,9 +33,11 @@ module_param(max_devices, int, 0644);
MODULE_PARM_DESC(max_devices, "max number of switchtec device instances"); MODULE_PARM_DESC(max_devices, "max number of switchtec device instances");
static dev_t switchtec_devt; static dev_t switchtec_devt;
static struct class *switchtec_class;
static DEFINE_IDA(switchtec_minor_ida); static DEFINE_IDA(switchtec_minor_ida);
struct class *switchtec_class;
EXPORT_SYMBOL_GPL(switchtec_class);
enum mrpc_state { enum mrpc_state {
MRPC_IDLE = 0, MRPC_IDLE = 0,
MRPC_QUEUED, MRPC_QUEUED,
......
...@@ -276,4 +276,6 @@ static inline struct switchtec_dev *to_stdev(struct device *dev) ...@@ -276,4 +276,6 @@ static inline struct switchtec_dev *to_stdev(struct device *dev)
return container_of(dev, struct switchtec_dev, dev); return container_of(dev, struct switchtec_dev, dev);
} }
extern struct class *switchtec_class;
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment