Signed-off-by: Jens Taprogge <jens.tapro...@taprogge.org>
---
 drivers/ipack/ipack.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/ipack/ipack.c b/drivers/ipack/ipack.c
index dd1d76c..008afad 100644
--- a/drivers/ipack/ipack.c
+++ b/drivers/ipack/ipack.c
@@ -338,6 +338,13 @@ static void ipack_parse_id2(struct ipack_device *dev)
        }
 }
 
+/**
+ * This methods reads and parses the device's IndustryPack ID section.  The raw
+ * data is copied to the newly allocated array dev->id.  dev->id is always
+ * freed by means of ipack_device_relase().
+ *
+ * @return 0 on success, error code on failure.
+ */
 static int ipack_device_read_id(struct ipack_device *dev)
 {
        u8 __iomem *idmem;
@@ -389,7 +396,7 @@ static int ipack_device_read_id(struct ipack_device *dev)
        }
 
        /* Obtain the amount of memory required to store a copy of the complete
-        * ID ROM contents */
+        * ID ROM contents. */
        dev->id = kmalloc(dev->id_avail, GFP_KERNEL);
        if (!dev->id) {
                dev_err(&dev->dev, "dev->id alloc failed.\n");
-- 
1.8.1.2


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Industrypack-devel mailing list
Industrypack-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/industrypack-devel

Reply via email to