diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-04-12 01:04:27 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-15 11:32:46 +0200 |
commit | 907f7cef17f50ca086eef1c0e503ecbb44c345d9 (patch) | |
tree | 87534e87e1f0001a0e0d340969b3cafe6511b245 /backport/backport-include/linux/leds.h | |
parent | be95ec033463b20061f54bdd6347a04b34bc8376 (diff) |
backports: dissolve compat-3.6.h
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport/backport-include/linux/leds.h')
-rw-r--r-- | backport/backport-include/linux/leds.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/backport/backport-include/linux/leds.h b/backport/backport-include/linux/leds.h new file mode 100644 index 00000000..17fc89e5 --- /dev/null +++ b/backport/backport-include/linux/leds.h @@ -0,0 +1,29 @@ +#ifndef __BACKPORT_LINUX_LEDS_H +#define __BACKPORT_LINUX_LEDS_H +#include_next <linux/leds.h> +#include <linux/version.h> + +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0) +/* + * Backports + * + * commit 959d62fa865d2e616b61a509e1cc5b88741f065e + * Author: Shuah Khan <shuahkhan@gmail.com> + * Date: Thu Jun 14 04:34:30 2012 +0800 + * + * leds: Rename led_brightness_set() to led_set_brightness() + * + * Rename leds external interface led_brightness_set() to led_set_brightness(). + * This is the second phase of the change to reduce confusion between the + * leds internal and external interfaces that set brightness. With this change, + * now the external interface is led_set_brightness(). The first phase renamed + * the internal interface led_set_brightness() to __led_set_brightness(). + * There are no changes to the interface implementations. + * + * Signed-off-by: Shuah Khan <shuahkhan@gmail.com> + * Signed-off-by: Bryan Wu <bryan.wu@canonical.com> + */ +#define led_set_brightness(_dev, _switch) led_brightness_set(_dev, _switch) +#endif + +#endif /* __BACKPORT_LINUX_LEDS_H */ |