Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/scdc: Fix typo in bit definition of SCDC_STATUS_FLAGS

Fix typo where bits got compared (x < y) instead of shifted (x << y).

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191016123342.19119-1-patrik.r.jakobsson@gmail.com

+3 -3
+3 -3
include/drm/drm_scdc_helper.h
··· 50 50 #define SCDC_READ_REQUEST_ENABLE (1 << 0) 51 51 52 52 #define SCDC_STATUS_FLAGS_0 0x40 53 - #define SCDC_CH2_LOCK (1 < 3) 54 - #define SCDC_CH1_LOCK (1 < 2) 55 - #define SCDC_CH0_LOCK (1 < 1) 53 + #define SCDC_CH2_LOCK (1 << 3) 54 + #define SCDC_CH1_LOCK (1 << 2) 55 + #define SCDC_CH0_LOCK (1 << 1) 56 56 #define SCDC_CH_LOCK_MASK (SCDC_CH2_LOCK | SCDC_CH1_LOCK | SCDC_CH0_LOCK) 57 57 #define SCDC_CLOCK_DETECT (1 << 0) 58 58