am7xxx: rename the 'size' argument of am7xxx_send_image() to 'image_size'
authorAntonio Ospite <ospite@studenti.unina.it>
Tue, 6 Mar 2012 16:28:57 +0000 (17:28 +0100)
committerAntonio Ospite <ospite@studenti.unina.it>
Tue, 6 Mar 2012 16:28:57 +0000 (17:28 +0100)
src/am7xxx.c
src/am7xxx.h

index b581718..f04b638 100644 (file)
@@ -695,7 +695,7 @@ int am7xxx_send_image(am7xxx_device *dev,
                      unsigned int width,
                      unsigned int height,
                      uint8_t *image,
                      unsigned int width,
                      unsigned int height,
                      uint8_t *image,
-                     unsigned int size)
+                     unsigned int image_size)
 {
        int ret;
        struct am7xxx_header h = {
 {
        int ret;
        struct am7xxx_header h = {
@@ -709,7 +709,7 @@ int am7xxx_send_image(am7xxx_device *dev,
                                .format     = format,
                                .width      = width,
                                .height     = height,
                                .format     = format,
                                .width      = width,
                                .height     = height,
-                               .image_size = size,
+                               .image_size = image_size,
                        },
                },
        };
                        },
                },
        };
@@ -718,12 +718,12 @@ int am7xxx_send_image(am7xxx_device *dev,
        if (ret < 0)
                return ret;
 
        if (ret < 0)
                return ret;
 
-       if (image == NULL || size == 0) {
-               warning(dev->ctx, "Not sending any data, check the 'data' or 'size' parameters\n");
+       if (image == NULL || image_size == 0) {
+               warning(dev->ctx, "Not sending any data, check the 'image' or 'image_size' parameters\n");
                return 0;
        }
 
                return 0;
        }
 
-       return send_data(dev, image, size);
+       return send_data(dev, image, image_size);
 }
 
 int am7xxx_set_power_mode(am7xxx_device *dev, am7xxx_power_mode mode)
 }
 
 int am7xxx_set_power_mode(am7xxx_device *dev, am7xxx_power_mode mode)
index 7d821d6..c86f1b9 100644 (file)
@@ -77,7 +77,7 @@ int am7xxx_send_image(am7xxx_device *dev,
                      unsigned int width,
                      unsigned int height,
                      unsigned char *image,
                      unsigned int width,
                      unsigned int height,
                      unsigned char *image,
-                     unsigned int size);
+                     unsigned int image_size);
 
 /*
  * NOTE: if we set the mode to AM7XXX_POWER_OFF we can't turn the
 
 /*
  * NOTE: if we set the mode to AM7XXX_POWER_OFF we can't turn the