crypto: talitos - export the talitos_submit function
authorHoria Geanta <horia.geanta@freescale.com>
Tue, 3 Jul 2012 16:16:52 +0000 (19:16 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Jul 2012 03:08:29 +0000 (11:08 +0800)
This patch exports the talitos_submit function so that on
need basis same can be used by other entities.

Signed-off-by: Sandeep Malik <Sandeep.Malik@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Horia Geanta <horia.geanta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c
drivers/crypto/talitos.h

index bb3e63f..2561aea 100644 (file)
@@ -192,11 +192,11 @@ static int init_device(struct device *dev)
  * callback must check err and feedback in descriptor header
  * for device processing status.
  */
-static int talitos_submit(struct device *dev, int ch, struct talitos_desc *desc,
-                         void (*callback)(struct device *dev,
-                                          struct talitos_desc *desc,
-                                          void *context, int error),
-                         void *context)
+int talitos_submit(struct device *dev, int ch, struct talitos_desc *desc,
+                  void (*callback)(struct device *dev,
+                                   struct talitos_desc *desc,
+                                   void *context, int error),
+                  void *context)
 {
        struct talitos_private *priv = dev_get_drvdata(dev);
        struct talitos_request *request;
@@ -237,6 +237,7 @@ static int talitos_submit(struct device *dev, int ch, struct talitos_desc *desc,
 
        return -EINPROGRESS;
 }
+EXPORT_SYMBOL(talitos_submit);
 
 /*
  * process what was done, notify callback of error if not
index 9835e3a..41b80f6 100644 (file)
@@ -133,6 +133,12 @@ struct talitos_private {
        struct hwrng rng;
 };
 
+extern int talitos_submit(struct device *dev, int ch, struct talitos_desc *desc,
+                         void (*callback)(struct device *dev,
+                                          struct talitos_desc *desc,
+                                          void *context, int error),
+                         void *context);
+
 /* .features flag */
 #define TALITOS_FTR_SRC_LINK_TBL_LEN_INCLUDES_EXTENT 0x00000001
 #define TALITOS_FTR_HW_AUTH_CHECK 0x00000002