mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
drm/panel: simple: use IS_REACHABLE instead of IS_ENABLED
Fixes: 697bbdf85b ("drm/panel: simple: Add support loader protect and power invert")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I60cec15818adc26f8c7dbb8867426fafddcd365a
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#define PANEL_SIMPLE_H
|
||||
#include <drm/drm_panel.h>
|
||||
|
||||
#if IS_ENABLED(CONFIG_DRM_PANEL_SIMPLE)
|
||||
#if IS_REACHABLE(CONFIG_DRM_PANEL_SIMPLE)
|
||||
int panel_simple_loader_protect(struct drm_panel *panel);
|
||||
#else
|
||||
static inline int panel_simple_loader_protect(struct drm_panel *panel)
|
||||
|
||||
Reference in New Issue
Block a user