Last active
June 10, 2023 18:24
-
-
Save FreddieOliveira/2da61b566548a0809ec5ea0a51fd9158 to your computer and use it in GitHub Desktop.
Xiaomi Note 11 (spes) kernel patches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c | |
index d37b83f4..f27945a0 100644 | |
--- a/drivers/gpu/drm/drm_panel.c | |
+++ b/drivers/gpu/drm/drm_panel.c | |
@@ -30,6 +30,20 @@ | |
static DEFINE_MUTEX(panel_lock); | |
static LIST_HEAD(panel_list); | |
+int drm_register_client(struct notifier_block *nb) | |
+{ | |
+ (void *) nb; | |
+ | |
+ return 0; | |
+} | |
+ | |
+int drm_unregister_client(struct notifier_block *nb) | |
+{ | |
+ (void *) nb; | |
+ | |
+ return 0; | |
+} | |
+ | |
/** | |
* DOC: drm panel | |
* | |
diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c | |
index 759278fe..e5ed6b02 100644 | |
--- a/drivers/gpu/drm/drm_syncobj.c | |
+++ b/drivers/gpu/drm/drm_syncobj.c | |
@@ -1026,3 +1026,25 @@ drm_syncobj_signal_ioctl(struct drm_device *dev, void *data, | |
return ret; | |
} | |
+ | |
+ssize_t | |
+dsi_display_mipi_reg_write(struct drm_connector *connector, | |
+ char *buf, size_t count) | |
+{ | |
+ (void *) connector; | |
+ (void *) buf; | |
+ (void) count; | |
+ | |
+ return 0; | |
+} | |
+ | |
+ssize_t | |
+dsi_display_mipi_reg_read(struct drm_connector *connector, | |
+ char *buf) | |
+{ | |
+ (void *) connector; | |
+ (void *) buf; | |
+ | |
+ return 0; | |
+} | |
+ | |
diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c | |
index 638e5a9a..315c6b05 100644 | |
--- a/drivers/gpu/drm/drm_sysfs.c | |
+++ b/drivers/gpu/drm/drm_sysfs.c | |
@@ -321,9 +321,30 @@ static ssize_t mipi_reg_store(struct device *device, | |
#ifdef CONFIG_TARGET_PROJECT_K7T | |
int dsi_bridge_disp_set_doze_backlight(struct drm_connector *connector, | |
int doze_backlight); | |
+ | |
+int | |
+dsi_bridge_disp_set_doze_backlight(struct drm_connector *connector, | |
+ int doze_backlight) | |
+{ | |
+ (void *) connector; | |
+ (void) doze_backlight; | |
+ | |
+ return 0; | |
+} | |
+ | |
ssize_t dsi_bridge_disp_get_doze_backlight(struct drm_connector *connector, | |
char *buf); | |
+ssize_t | |
+dsi_bridge_disp_get_doze_backlight(struct drm_connector *connector, | |
+ char *buf) | |
+{ | |
+ (void *) connector; | |
+ (void *) buf; | |
+ | |
+ return 0; | |
+} | |
+ | |
static ssize_t doze_brightness_show(struct device *device, | |
struct device_attribute *attr, | |
char *buf) | |
diff --git a/drivers/input/touchscreen/nt36525b_spi/nt36xxx.c b/drivers/input/touchscreen/nt36525b_spi/nt36xxx.c | |
index 6150148d..4981c01e 100755 | |
--- a/drivers/input/touchscreen/nt36525b_spi/nt36xxx.c | |
+++ b/drivers/input/touchscreen/nt36525b_spi/nt36xxx.c | |
@@ -102,6 +102,7 @@ static void nvt_ts_late_resume(struct early_suspend *h); | |
#if WAKEUP_GESTURE | |
extern void set_lcd_reset_gpio_keep_high(bool en); | |
+void set_lcd_reset_gpio_keep_high(bool en) {(void)en;} | |
static int lct_nvt_tp_gesture_callback(bool flag); | |
#endif | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment