mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 18:04:48 +00:00
video: Fix VNBYTES() macro comment
The VNBYTES() macro has been updated to silence possible warnings
regarding authorized (but unusual) uses of this macro, but the comment
was kept unchanged. A year has passed so let's fix the comment now to
avoid confusions.
Fixes: cc05d352fb
("video: Add parentheses around VNBYTES() macro")
Suggested-by: Tom Rini <trini@konsulko.com>
Link: https://lore.kernel.org/u-boot/20240906183432.GG3879073@bill-the-cat/
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
6606a6adfa
commit
b34849c5ac
1 changed files with 1 additions and 5 deletions
|
@ -57,12 +57,8 @@ enum video_log2_bpp {
|
|||
VIDEO_BPP32,
|
||||
};
|
||||
|
||||
/*
|
||||
* Convert enum video_log2_bpp to bytes and bits. Note we omit the outer
|
||||
* brackets to allow multiplication by fractional pixels.
|
||||
*/
|
||||
/* Convert enum video_log2_bpp to bytes and bits */
|
||||
#define VNBYTES(bpix) ((1 << (bpix)) / 8)
|
||||
|
||||
#define VNBITS(bpix) (1 << (bpix))
|
||||
|
||||
enum video_format {
|
||||
|
|
Loading…
Add table
Reference in a new issue