Skip to content

Commit

Permalink
Update evdi_fb.c
Browse files Browse the repository at this point in the history
Added support for Kernels 6.1.51 and newer
This would mean support for Steam OS 3.5.19
  • Loading branch information
GatoHusmeador authored and displaylink-emajewsk committed Jul 24, 2024
1 parent e36efa8 commit 88ef73d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/evdi_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ static int evdifb_create(struct drm_fb_helper *helper,
fb = &efbdev->efb.base;

efbdev->helper.fb = fb;
#if KERNEL_VERSION(6, 2, 0) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9)
#if KERNEL_VERSION(6, 1, 51) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9)
efbdev->helper.info = info;
#else
efbdev->helper.fbdev = info;
Expand Down Expand Up @@ -464,7 +464,7 @@ static void evdi_fbdev_destroy(__always_unused struct drm_device *dev,
{
struct fb_info *info;

#if KERNEL_VERSION(6, 2, 0) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9)
#if KERNEL_VERSION(6, 1, 51) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9)
if (efbdev->helper.info) {
info = efbdev->helper.info;
#else
Expand Down Expand Up @@ -556,7 +556,7 @@ void evdi_fbdev_unplug(struct drm_device *dev)
return;

efbdev = evdi->fbdev;
#if KERNEL_VERSION(6, 2, 0) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9)
#if KERNEL_VERSION(6, 1, 51) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9)
if (efbdev->helper.info) {
struct fb_info *info;

Expand Down

0 comments on commit 88ef73d

Please sign in to comment.