commit: http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=970a26ec6301a30b37cf8803cfabc9d5a4b8e84c
branch: http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/trunk

Signed-off-by: Scott Jiang <[email protected]>
---
 drivers/video/bf537-lq035.c      |    2 +-
 drivers/video/bf54x-lq043fb.c    |    2 +-
 drivers/video/bfin-lq035q1-fb.c  |    2 +-
 drivers/video/bfin-t350mcqb-fb.c |    2 +-
 drivers/video/bfin_adv7393fb.c   |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/video/bf537-lq035.c b/drivers/video/bf537-lq035.c
index befbc80..ef5835e 100644
--- a/drivers/video/bf537-lq035.c
+++ b/drivers/video/bf537-lq035.c
@@ -599,7 +599,7 @@ static int bfin_lq035_fb_setcolreg(u_int regno, u_int red, u_int green,
 
 		u32 value;
 		/* Place color in the pseudopalette */
-		if (regno > 16)
+		if (regno >= 16)
 			return -EINVAL;
 
 		red   >>= (16 - info->var.red.length);
diff --git a/drivers/video/bf54x-lq043fb.c b/drivers/video/bf54x-lq043fb.c
index dc2f004..e9c812d 100644
--- a/drivers/video/bf54x-lq043fb.c
+++ b/drivers/video/bf54x-lq043fb.c
@@ -394,7 +394,7 @@ static int bfin_bf54x_fb_setcolreg(u_int regno, u_int red, u_int green,
 
 		u32 value;
 		/* Place color in the pseudopalette */
-		if (regno > 16)
+		if (regno >= 16)
 			return -EINVAL;
 
 		red >>= (16 - info->var.red.length);
diff --git a/drivers/video/bfin-lq035q1-fb.c b/drivers/video/bfin-lq035q1-fb.c
index dd46ef5..1f37915 100644
--- a/drivers/video/bfin-lq035q1-fb.c
+++ b/drivers/video/bfin-lq035q1-fb.c
@@ -505,7 +505,7 @@ static int bfin_lq035q1_fb_setcolreg(u_int regno, u_int red, u_int green,
 
 		u32 value;
 		/* Place color in the pseudopalette */
-		if (regno > 16)
+		if (regno >= 16)
 			return -EINVAL;
 
 		red >>= (16 - info->var.red.length);
diff --git a/drivers/video/bfin-t350mcqb-fb.c b/drivers/video/bfin-t350mcqb-fb.c
index cdd3091..fba90f0 100644
--- a/drivers/video/bfin-t350mcqb-fb.c
+++ b/drivers/video/bfin-t350mcqb-fb.c
@@ -317,7 +317,7 @@ static int bfin_t350mcqb_fb_setcolreg(u_int regno, u_int red, u_int green,
 
 		u32 value;
 		/* Place color in the pseudopalette */
-		if (regno > 16)
+		if (regno >= 16)
 			return -EINVAL;
 
 		red >>= (16 - info->var.red.length);
diff --git a/drivers/video/bfin_adv7393fb.c b/drivers/video/bfin_adv7393fb.c
index bba6dc4..ed2263c 100644
--- a/drivers/video/bfin_adv7393fb.c
+++ b/drivers/video/bfin_adv7393fb.c
@@ -687,7 +687,7 @@ static int bfin_adv7393_fb_setcolreg(u_int regno, u_int red, u_int green,
 	if (info->fix.visual == FB_VISUAL_TRUECOLOR) {
 		u32 value;
 		/* Place color in the pseudopalette */
-		if (regno > 16)
+		if (regno >= 16)
 			return -EINVAL;
 
 		red   >>= (16 - info->var.red.length);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to