pmaports/device/linux-motorola-def/fix-hdcp-case-label.patch
ky0ko 33cce38062
motorola-def: new device (Moto One Hyper) (!1023)
This adds basic functionality for the Moto One Hyper.
The device boots with rootfs on sd, booted by 'pmbootstrap flasher boot'.
USB net works, and i can ssh in. There is no framebuffer device, but
weston works with the drm backend instead of fbdev. Touchscreen support
is not implemented yet, but i will update this with support when i get
the chance. Most other functionality either does not seem to work yet or
has not been tested (wifi, audio, modem, etc).
2020-03-06 20:23:46 +03:00

24 lines
751 B
Diff

diff --git a/drivers/gpu/drm/msm/sde_hdcp_2x.c b/drivers/gpu/drm/msm/sde_hdcp_2x.c
index 01e5e2c9e516..10aca3e30049 100644
--- a/drivers/gpu/drm/msm/sde_hdcp_2x.c
+++ b/drivers/gpu/drm/msm/sde_hdcp_2x.c
@@ -418,16 +418,14 @@ static void sde_hdcp_2x_cleanup_work(struct kthread_work *work)
static u8 sde_hdcp_2x_stream_type(u8 min_enc_level)
{
u8 stream_type = 0;
- u8 const hdcp_min_enc_level_0 = 0, hdcp_min_enc_level_1 = 1,
- hdcp_min_enc_level_2 = 2;
u8 const stream_type_0 = 0, stream_type_1 = 1;
switch (min_enc_level) {
- case hdcp_min_enc_level_0:
- case hdcp_min_enc_level_1:
+ case 0:
+ case 1:
stream_type = stream_type_0;
break;
- case hdcp_min_enc_level_2:
+ case 2:
stream_type = stream_type_1;
break;
default: