greybus: don't key on an enumerated constant
authorAlex Elder <elder@linaro.org>
Wed, 8 Jun 2016 19:44:22 +0000 (12:44 -0700)
committerAkash Choudhari <akashtc@google.com>
Wed, 8 Jun 2016 19:44:48 +0000 (12:44 -0700)
commit365d79fc20232dd730723801b7417cca9766dd79
tree5e3b8d190b8a44fa0bde62653d69b421649d4f48
parent8fb76c3cfd5c54cb0d8713436d480a8062217d5c
greybus: don't key on an enumerated constant

The symbol PWMF_ENABLED is defined via an enum, which is not defined
at the time the preprocessor passes through "kernel_ver.h".  So we
can't use it in an #if statement expression.

Use the Linux kernel version instead.

Change-Id: Id427224b1dfecfd886fcdae89c4bcf711b616439
Signed-off-by: Alex Elder <elder@linaro.org>
drivers/staging/greybus/kernel_ver.h