media: v4l: dvb-frontends: stb0899: fix comparison to bitshift when dealing with...
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 5 Feb 2018 20:10:00 +0000 (15:10 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Mar 2018 13:30:10 +0000 (08:30 -0500)
Due to a typo, the mask was destroyed by a comparison instead of a bit
shift.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/stb0899_reg.h

index ba1ed56304a0f4e0d7134f7db7a75daee589d7b2..f564269249a68207ccd05fb137e8e24cdf4ad09f 100644 (file)
 
 #define STB0899_OFF0_IF_AGC_GAIN               0xf30c
 #define STB0899_BASE_IF_AGC_GAIN               0x00000000
-#define STB0899_IF_AGC_GAIN                    (0x3fff < 0)
+#define STB0899_IF_AGC_GAIN                    (0x3fff << 0)
 #define STB0899_OFFST_IF_AGC_GAIN              0
 #define STB0899_WIDTH_IF_AGC_GAIN              14
 
 #define STB0899_OFF0_BB_AGC_GAIN               0xf310
 #define STB0899_BASE_BB_AGC_GAIN               0x00000000
-#define STB0899_BB_AGC_GAIN                    (0x3fff < 0)
+#define STB0899_BB_AGC_GAIN                    (0x3fff << 0)
 #define STB0899_OFFST_BB_AGC_GAIN              0
 #define STB0899_WIDTH_BB_AGC_GAIN              14
 
 #define STB0899_OFF0_DC_OFFSET                 0xf314
 #define STB0899_BASE_DC_OFFSET                 0x00000000
-#define STB0899_I                              (0xff < 8)
+#define STB0899_I                              (0xff << 8)
 #define STB0899_OFFST_I                                8
 #define STB0899_WIDTH_I                                8
-#define STB0899_Q                              (0xff < 0)
+#define STB0899_Q                              (0xff << 0)
 #define STB0899_OFFST_Q                                8
 #define STB0899_WIDTH_Q                                8