diff options
author | Rui Miguel Silva <rui.silva@linaro.org> | 2016-09-08 17:17:48 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-09-19 16:46:34 +0200 |
commit | a7af2fe6d1baa45e73531fb994444fa0f59d8f62 (patch) | |
tree | 14f27f01a39897a85b8a67c7cf39eda6c0e2152f /drivers/staging/greybus/kernel_ver.h | |
parent | 7434564ca130552f3f873d0a7e87286a16890c32 (diff) | |
download | op-kernel-dev-a7af2fe6d1baa45e73531fb994444fa0f59d8f62.zip op-kernel-dev-a7af2fe6d1baa45e73531fb994444fa0f59d8f62.tar.gz |
staging: greybus: light: remove KERNEL_VERSION checks
No need to support older kernel versions in the Greybus Light driver, so
remove the checks as needed, we can now rely on all of the correct LED
core apis being present. And compile only if flash and v4l2 flash is
reachable.
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/kernel_ver.h')
-rw-r--r-- | drivers/staging/greybus/kernel_ver.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/staging/greybus/kernel_ver.h b/drivers/staging/greybus/kernel_ver.h index 59d55be..980263f 100644 --- a/drivers/staging/greybus/kernel_ver.h +++ b/drivers/staging/greybus/kernel_ver.h @@ -35,36 +35,6 @@ #define MMC_POWER_UNDEFINED_SUPPORTED #endif -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0) -/* - * At this time the internal API for the set brightness was changed to the async - * version, and one sync API was added to handle cases that need immediate - * effect. Also, the led class flash and lock for sysfs access was introduced. - */ -#define LED_HAVE_SET_SYNC -#define LED_HAVE_FLASH -#define LED_HAVE_LOCK -#include <linux/led-class-flash.h> -#endif - -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0) -/* - * New change in LED api, the set_sync operation was renamed to set_blocking and - * the workqueue is now handle by core. So, only one set operation is need. - */ -#undef LED_HAVE_SET_SYNC -#define LED_HAVE_SET_BLOCKING -#endif - -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) -/* - * New helper functions for registering/unregistering flash led devices as v4l2 - * subdevices were added. - */ -#define V4L2_HAVE_FLASH -#include <media/v4l2-flash-led-class.h> -#endif - #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0) /* * Power supply get by name need to drop reference after call |