drm/panel: maxim-max96772: Fix compilation errors on kernel 6.1

drivers/gpu/drm/panel/panel-maxim-max96772.c:22:10: fatal error: drm/drm_dp_helper.h: No such file or directory
drivers/gpu/drm/panel/panel-maxim-max96772.c:536:19: error: initialization of 'void (*)(struct i2c_client *)' from incompatible pointer type 'int (*)(struct i2c_client *)'

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I53cd11e89b92a96e5724db344c86709c2ca414ff
This commit is contained in:
Tao Huang
2023-08-21 20:08:42 +08:00
parent 0fa451f5bc
commit 14d459382d

View File

@@ -19,7 +19,7 @@
#include <uapi/linux/media-bus-format.h>
#include <drm/drm_device.h>
#include <drm/drm_dp_helper.h>
#include <drm/display/drm_dp_helper.h>
#include <drm/drm_modes.h>
#include <drm/drm_panel.h>
@@ -489,13 +489,11 @@ static int max96772_panel_probe(struct i2c_client *client)
return 0;
}
static int max96772_panel_remove(struct i2c_client *client)
static void max96772_panel_remove(struct i2c_client *client)
{
struct max96772_panel *p = i2c_get_clientdata(client);
drm_panel_remove(&p->panel);
return 0;
}
static int boe_ae146m1t_l10_prepare(struct max96772_panel *p)