summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/vsp1
diff options
context:
space:
mode:
authorWolfram Sang2018-02-05 21:09:58 +0100
committerMauro Carvalho Chehab2018-02-26 16:26:33 +0100
commit06227008670afddd5eb66cc6a85c27fd5e72f41e (patch)
tree9ce1ce5805881b27b6e4c79b6a3c517780b481df /drivers/media/platform/vsp1
parentmedia: v4l: vsp1: Print the correct blending unit name in debug messages (diff)
downloadkernel-qcow2-linux-06227008670afddd5eb66cc6a85c27fd5e72f41e.tar.gz
kernel-qcow2-linux-06227008670afddd5eb66cc6a85c27fd5e72f41e.tar.xz
kernel-qcow2-linux-06227008670afddd5eb66cc6a85c27fd5e72f41e.zip
media: v4l: vsp1: Fix mask creation for MULT_ALPHA_RATIO
Due to a typo, the mask was destroyed by a comparison instead of a bit shift. No regression since the mask has not been used yet. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/vsp1')
-rw-r--r--drivers/media/platform/vsp1/vsp1_regs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/vsp1/vsp1_regs.h b/drivers/media/platform/vsp1/vsp1_regs.h
index 26c4ffad2f46..b1912c83a1da 100644
--- a/drivers/media/platform/vsp1/vsp1_regs.h
+++ b/drivers/media/platform/vsp1/vsp1_regs.h
@@ -225,7 +225,7 @@
#define VI6_RPF_MULT_ALPHA_P_MMD_RATIO (1 << 8)
#define VI6_RPF_MULT_ALPHA_P_MMD_IMAGE (2 << 8)
#define VI6_RPF_MULT_ALPHA_P_MMD_BOTH (3 << 8)
-#define VI6_RPF_MULT_ALPHA_RATIO_MASK (0xff < 0)
+#define VI6_RPF_MULT_ALPHA_RATIO_MASK (0xff << 0)
#define VI6_RPF_MULT_ALPHA_RATIO_SHIFT 0
/* -----------------------------------------------------------------------------