From: Philippe CORNU Date: Mon, 5 Feb 2018 09:45:32 +0000 (+0100) Subject: drm/panel: otm8009a: Add support for the optional power-supply X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ded8d7fe8d363d20430d38c402768056e38cc3eb;p=linux.git drm/panel: otm8009a: Add support for the optional power-supply Add support for the optional power-supply. Note: A "dummy regulator" is returned by devm_regulator_get() if the optional regulator is not present in the device tree, simplifying the source code when enabling/disabling the regulator. Signed-off-by: Philippe Cornu Reviewed-by: Yannick Fertré Signed-off-by: Thierry Reding Link: https://patchwork.freedesktop.org/patch/msgid/20180205094532.23547-3-philippe.cornu@st.com --- diff --git a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c b/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c index c189cd6329c8d..dbd5da583b66b 100644 --- a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +++ b/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c @@ -11,6 +11,7 @@ #include #include #include +#include #include