diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 14:45:13 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 15:25:58 +0100 |
commit | 3356b95d7358454798020eeb914228f0a130c8af (patch) | |
tree | eb562ed3fc81f0461997948ea0741a95b69c8406 /backport/backport-include | |
parent | 15c8c14b7578c650553af7f3398b5895b413776a (diff) |
backports: suppress led_set_brightness redefinition warnings
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport/backport-include')
-rw-r--r-- | backport/backport-include/linux/leds.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backport/backport-include/linux/leds.h b/backport/backport-include/linux/leds.h index 8f5e791e..9f45aba2 100644 --- a/backport/backport-include/linux/leds.h +++ b/backport/backport-include/linux/leds.h @@ -5,6 +5,7 @@ #include <backport/leds-disabled.h> +#ifndef CPTCFG_BPAUTO_BUILD_LEDS #if LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0) /* * Backports @@ -27,6 +28,7 @@ */ #define led_set_brightness(_dev, _switch) led_brightness_set(_dev, _switch) #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0) */ +#endif /* CPTCFG_BPAUTO_BUILD_LEDS */ #if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0) /* |