greybus: adjust kernel version check for led_sysfs_is_disabled
authorMichael Scott <michael.scott@linaro.org>
Tue, 21 Jun 2016 23:41:46 +0000 (16:41 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 23 Jun 2016 18:50:58 +0000 (11:50 -0700)
commitc13a206f7e44d8bb207512dfe58677674e514833
tree74e1ff4ce0ae3741d4c52e0a7f52faa53137670b
parent2d533cf16bffc579b03f8e376b2f01f09a092aeb
greybus: adjust kernel version check for led_sysfs_is_disabled

When building greybus against a 3.18 kernel the following error is generated:
light.c:205:9: error: implicit declaration of function 'led_sysfs_is_disabled'
[-Werror=implicit-function-declaration]

led_sysfs_is_disabled was not added until 3.19 kernel cycle

Verification:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/include/linux/leds.h?h=linux-3.18.y
(no function led_sysfs_is_disabled defined here)

Testing Done:
- Successfully built greybus for 3.18 kernel

Signed-off-by: Michael Scott <michael.scott@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/kernel_ver.h