summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/kernel_ver.h
diff options
context:
space:
mode:
authorRui Miguel Silva <rui.silva@linaro.org>2016-09-08 17:17:50 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-09-19 16:48:44 +0200
commit722a133a6a6687bba21cfdf33bde5767109d0dea (patch)
tree961a8eec05edf796eb2b46d10c98c217a6f98acb /drivers/staging/greybus/kernel_ver.h
parent2064ae5741f49a3e8c178680390eb296592562c1 (diff)
downloadop-kernel-dev-722a133a6a6687bba21cfdf33bde5767109d0dea.zip
op-kernel-dev-722a133a6a6687bba21cfdf33bde5767109d0dea.tar.gz
staging: greybus: power_supply: remove KERNEL_VERSION checks
No need to support older kernel versions in the Greybus Power Supply driver, so remove the checks as needed, we can now rely on all of the correct Power Supply core apis being present. Also move some properties definitions to the power supply greybus code. 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.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/staging/greybus/kernel_ver.h b/drivers/staging/greybus/kernel_ver.h
index 1d93fb0..cfd7bc7 100644
--- a/drivers/staging/greybus/kernel_ver.h
+++ b/drivers/staging/greybus/kernel_ver.h
@@ -17,32 +17,6 @@
#include <linux/kernel.h>
#include <linux/version.h>
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)
-/* Commit: 297d716 power_supply: Change ownership from driver to core */
-#define CORE_OWNS_PSY_STRUCT
-#endif
-
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)
-/*
- * Power supply get by name need to drop reference after call
- */
-#define PSY_HAVE_PUT
-#endif
-
-/*
- * General power supply properties that could be absent from various reasons,
- * like kernel versions or vendor specific versions
- */
-#ifndef POWER_SUPPLY_PROP_VOLTAGE_BOOT
- #define POWER_SUPPLY_PROP_VOLTAGE_BOOT -1
-#endif
-#ifndef POWER_SUPPLY_PROP_CURRENT_BOOT
- #define POWER_SUPPLY_PROP_CURRENT_BOOT -1
-#endif
-#ifndef POWER_SUPPLY_PROP_CALIBRATE
- #define POWER_SUPPLY_PROP_CALIBRATE -1
-#endif
-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)
/*
* After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is
OpenPOWER on IntegriCloud