OSDN Git Service

greybus: makefile: add needed config options for lights
authorRui Miguel Silva <rui.silva@linaro.org>
Fri, 14 Aug 2015 12:58:18 +0000 (13:58 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 14 Aug 2015 21:41:06 +0000 (14:41 -0700)
commit13fcfbb6c5bbd7aee7e9980313dc29469357c5cd
treef98bcb57c363cae66fead5d8f96b2ad530ede047
parentdc366f8e397c41ba582821e24abdc2bc4ae80a47
greybus: makefile: add needed config options for lights

Add a function to check kernel versions and append the necessary
options to support LEDS_CLASS, LEDS_CLASS_FLASH and  V4L2_FLASH_LED_CLASS
depending of the kernel version.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/Makefile