linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] video: da8xx-fb: Fix casting of info->pseudo_palette
@ 2014-03-03  8:43 Jon Ringle
  2014-03-05  8:19 ` jon
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Ringle @ 2014-03-03  8:43 UTC (permalink / raw)
  To: linux-fbdev

The casting to (u16 *) on info->pseudo_palette is wrong and causes the
display to show a blue (garbage) vertical line on every other pixel column

Signed-off-by: Jon Ringle <jringle@gridpoint.com>
---
 drivers/video/da8xx-fb.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index d042624..83c43b2 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -678,15 +678,7 @@ static int fb_setcolreg(unsigned regno, unsigned red, unsigned green,
                        (green << info->var.green.offset) |
                        (blue << info->var.blue.offset);

-               switch (info->var.bits_per_pixel) {
-               case 16:
-                       ((u16 *) (info->pseudo_palette))[regno] = v;
-                       break;
-               case 24:
-               case 32:
-                       ((u32 *) (info->pseudo_palette))[regno] = v;
-                       break;
-               }
+               ((u32 *) (info->pseudo_palette))[regno] = v;
                if (palette[0] != 0x4000) {
                        update_hw = 1;
                        palette[0] = 0x4000;
--
1.8.5.4


The information contained in this transmission may contain confidential information.  If the reader of this message is not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited.  If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] video: da8xx-fb: Fix casting of info->pseudo_palette
  2014-03-03  8:43 [PATCH] video: da8xx-fb: Fix casting of info->pseudo_palette Jon Ringle
@ 2014-03-05  8:19 ` jon
  2014-03-26 16:56   ` Jon Ringle
  0 siblings, 1 reply; 3+ messages in thread
From: jon @ 2014-03-05  8:19 UTC (permalink / raw)
  To: linux-fbdev, linux-kernel; +Cc: Jon Ringle

From: Jon Ringle <jringle@gridpoint.com>

(Resending without corporate disclaimer in email footer)

The casting to (u16 *) on info->pseudo_palette is wrong and causes the
display to show a blue (garbage) vertical line on every other pixel column

Signed-off-by: Jon Ringle <jringle@gridpoint.com>
---
 drivers/video/da8xx-fb.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index d042624..83c43b2 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -678,15 +678,7 @@ static int fb_setcolreg(unsigned regno, unsigned red, unsigned green,
 			(green << info->var.green.offset) |
 			(blue << info->var.blue.offset);
 
-		switch (info->var.bits_per_pixel) {
-		case 16:
-			((u16 *) (info->pseudo_palette))[regno] = v;
-			break;
-		case 24:
-		case 32:
-			((u32 *) (info->pseudo_palette))[regno] = v;
-			break;
-		}
+		((u32 *) (info->pseudo_palette))[regno] = v;
 		if (palette[0] != 0x4000) {
 			update_hw = 1;
 			palette[0] = 0x4000;
-- 
1.8.5.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] video: da8xx-fb: Fix casting of info->pseudo_palette
  2014-03-05  8:19 ` jon
@ 2014-03-26 16:56   ` Jon Ringle
  0 siblings, 0 replies; 3+ messages in thread
From: Jon Ringle @ 2014-03-26 16:56 UTC (permalink / raw)
  To: linux-fbdev, linux-kernel@vger.kernel.org; +Cc: Jon Ringle

I've not heard anything regarding this patch. I just want to make sure
it's not lost :)

Jon


On Wed, Mar 5, 2014 at 3:19 AM,  <jon@ringle.org> wrote:
> From: Jon Ringle <jringle@gridpoint.com>
>
> (Resending without corporate disclaimer in email footer)
>
> The casting to (u16 *) on info->pseudo_palette is wrong and causes the
> display to show a blue (garbage) vertical line on every other pixel column
>
> Signed-off-by: Jon Ringle <jringle@gridpoint.com>
> ---
>  drivers/video/da8xx-fb.c | 10 +---------
>  1 file changed, 1 insertion(+), 9 deletions(-)
>
> diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
> index d042624..83c43b2 100644
> --- a/drivers/video/da8xx-fb.c
> +++ b/drivers/video/da8xx-fb.c
> @@ -678,15 +678,7 @@ static int fb_setcolreg(unsigned regno, unsigned red, unsigned green,
>                         (green << info->var.green.offset) |
>                         (blue << info->var.blue.offset);
>
> -               switch (info->var.bits_per_pixel) {
> -               case 16:
> -                       ((u16 *) (info->pseudo_palette))[regno] = v;
> -                       break;
> -               case 24:
> -               case 32:
> -                       ((u32 *) (info->pseudo_palette))[regno] = v;
> -                       break;
> -               }
> +               ((u32 *) (info->pseudo_palette))[regno] = v;
>                 if (palette[0] != 0x4000) {
>                         update_hw = 1;
>                         palette[0] = 0x4000;
> --
> 1.8.5.4
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-26 16:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-03  8:43 [PATCH] video: da8xx-fb: Fix casting of info->pseudo_palette Jon Ringle
2014-03-05  8:19 ` jon
2014-03-26 16:56   ` Jon Ringle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).