Re: [PATCH v3 2/7] drm/tinydrm: Add helper functions

From: Jani Nikula
Date: Mon Feb 06 2017 - 05:10:39 EST


On Tue, 31 Jan 2017, Noralf TrÃnnes <noralf@xxxxxxxxxxx> wrote:
> +#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE

BACKLIGHT_CLASS_DEVICE is a tristate, you'll want

#if IS_ENABLED(CONFIG_BACKLIGHT_CLASS_DEVICE)

and probably either

depends on BACKLIGHT_CLASS_DEVICE

or

depends on BACKLIGHT_CLASS_DEVICE || BACKLIGHT_CLASS_DEVICE=n

in your Kconfig.

BR,
Jani.

--
Jani Nikula, Intel Open Source Technology Center