Skip to content

Commit

Permalink
fb: carminefb: trivial annotation packing color register
Browse files Browse the repository at this point in the history
drivers/video/carminefb.c:171:41: warning: cast to restricted __be32

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Sebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Harvey Harrison authored and Linus Torvalds committed Jan 6, 2009
1 parent 729f77b commit 08cc634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/carminefb.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ static int carmine_setcolreg(unsigned regno, unsigned red, unsigned green,
blue >>= 8;
transp >>= 8;

((u32 *)info->pseudo_palette)[regno] = be32_to_cpu(transp << 24 |
((__be32 *)info->pseudo_palette)[regno] = cpu_to_be32(transp << 24 |
red << 0 | green << 8 | blue << 16);
return 0;
}
Expand Down

0 comments on commit 08cc634

Please sign in to comment.