greybus: power_supply: reverse version check for new psy API
authorSandeep Patil <sspatil@google.com>
Tue, 15 Mar 2016 19:28:38 +0000 (12:28 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 17 Mar 2016 04:49:31 +0000 (21:49 -0700)
commitf8811c7630912617d1bc0e0b18e3221fec26f9cf
treebbdcdd2172110a649b7d1d4abb7746ec9720a3cf
parent3b90040de82a43ee0538d36b32c9fa4cbbab59c6
greybus: power_supply: reverse version check for new psy API

Reversing the kernel version check for new power supply APIs will
easily allow us to use older kernels with backported power supply APIs
by defining "CORE_OWNS_PSY_STRUCT" in power supply core header

Testing Done:
- Build tested with arche kernel with backported power supply APIs
- Build tested also with current arche kernel to make sure we build with
  3.10 kernels

Signed-off-by: Sandeep Patil <sspatil@google.com>
Reviewed-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/kernel_ver.h
drivers/staging/greybus/power_supply.c