The patch titled
     V4L: stk11xx, use ARRAY_SIZE in another 2 cases
has been removed from the -mm tree.  Its filename was
     v4l-stk11xx-use-array_size-in-another-2-cases.patch

This patch was dropped because an updated version will be merged

------------------------------------------------------
Subject: V4L: stk11xx, use ARRAY_SIZE in another 2 cases
From: Jiri Slaby <[EMAIL PROTECTED]>

There were 2 places with constant in for loop.  Use ARRARY_SIZE instead to
allow easy update of the tables.

Signed-off-by: Jiri Slaby <[EMAIL PROTECTED]>
Cc: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 drivers/media/video/stk1125.c |    2 +-
 drivers/media/video/stk1135.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -puN 
drivers/media/video/stk1125.c~v4l-stk11xx-use-array_size-in-another-2-cases 
drivers/media/video/stk1125.c
--- 
a/drivers/media/video/stk1125.c~v4l-stk11xx-use-array_size-in-another-2-cases
+++ a/drivers/media/video/stk1125.c
@@ -80,7 +80,7 @@ static int stk1125_load_microcode(struct
                break;
        }
 
-       for (i = 0; i < 59; i++) {
+       for (i = 0; i < ARRAY_SIZE(values_1_204); i++) {
                stk11xx_read_dummy(dev, 0x02ff);
                stk11xx_write_reg(dev, 0x02ff, 0x00);
 
diff -puN 
drivers/media/video/stk1135.c~v4l-stk11xx-use-array_size-in-another-2-cases 
drivers/media/video/stk1135.c
--- 
a/drivers/media/video/stk1135.c~v4l-stk11xx-use-array_size-in-another-2-cases
+++ a/drivers/media/video/stk1135.c
@@ -53,7 +53,7 @@ static int stk1135_load_microcode(struct
                0xe4, 0x09, 0xc8, 0x08, 0x08, 0x10, 0x14
        };
 
-       for (i = 0; i < 117; i++) {
+       for (i = 0; i < ARRAY_SIZE(values_204); i++) {
                stk11xx_read_dummy(dev, 0x02ff);
                stk11xx_write_reg(dev, 0x02ff, 0x00);
 
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

v4l-stk11xx-add-a-new-webcam-driver.patch
v4l-stk11xx-use-array_size-in-another-2-cases.patch
v4l-stk11xx-use-retval-from-stk11xx_check_device.patch
v4l-stk11xx-add-static-to-tables.patch
git-wireless.patch
crisv10-serial-driver-rewrite-take-three.patch
dzh-remove-useless-unused-module-junk.patch
dz-always-check-if-it-is-safe-to-console_putchar.patch
dz-dont-panic-when-request_irq-fails.patch
dz-add-and-reorder-inclusions-remove-unneeded-ones.patch
dz-update-kconfig-description.patch
dz-rename-the-serial-console-structure.patch
dz-fix-locking-issues.patch
dz-handle-special-conditions-on-reception-correctly.patch
maintainers-add-self-for-the-dz-serial-driver.patch
reiser4.patch
shrink_slab-handle-bad-shrinkers.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to