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:
Tao Huang
2022-04-12 19:58:02 +08:00
parent 6f897d3703
commit 0dfcc9620e

View File

@@ -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)