summaryrefslogtreecommitdiffstats
path: root/presence/gpio.hpp
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-07-28 22:24:03 -0400
committerPatrick Williams <patrick@stwcx.xyz>2017-08-02 20:18:19 +0000
commit2e9788d72b27f372a0f3f214db08983656caec6b (patch)
treeaf7c3703a7a1aab232e0916ce171b7c4828ec5d3 /presence/gpio.hpp
parentd37c0f850a4cf5ccbfcce22006398797ed42179d (diff)
downloadphosphor-fan-presence-2e9788d72b27f372a0f3f214db08983656caec6b.tar.gz
phosphor-fan-presence-2e9788d72b27f372a0f3f214db08983656caec6b.zip
presence: Un-hardcode input device path
Allow a device path to be configured. Change-Id: I2eabd71747b124eae96738d1332f58b96ece6dc9 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'presence/gpio.hpp')
-rw-r--r--presence/gpio.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/presence/gpio.hpp b/presence/gpio.hpp
index e516e0f..978fdd9 100644
--- a/presence/gpio.hpp
+++ b/presence/gpio.hpp
@@ -41,9 +41,13 @@ class Gpio : public PresenceSensor
* @brief Construct a gpio sensor.
*
* @param[in] physDevice - The physical gpio device path.
+ * @param[in] device - The gpio-keys input device.
* @param[in] physPin - The physical gpio pin number.
*/
- Gpio(const std::string& physDevice, unsigned int physPin);
+ Gpio(
+ const std::string& physDevice,
+ const std::string& device,
+ unsigned int physPin);
/**
* @brief start
OpenPOWER on IntegriCloud