summaryrefslogtreecommitdiffstats
path: root/presence/example
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/example
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/example')
-rw-r--r--presence/example/example.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/presence/example/example.yaml b/presence/example/example.yaml
index 140e1ec..69a322b 100644
--- a/presence/example/example.yaml
+++ b/presence/example/example.yaml
@@ -37,6 +37,7 @@
- type: gpio
key: 123
physpath: /sys/devices/foo/bar
+ devpath: /dev/input/by-path/platform-gpio-keys-event
- name: Example Fan2
description: >
@@ -58,6 +59,7 @@
- type: gpio
key: 124
physpath: /sys/devices/foo/bar
+ devpath: /dev/input/by-path/platform-gpio-keys-polled-event
- type: tach
sensors:
- fan2
@@ -75,6 +77,7 @@
- type: gpio
key: 125
physpath: /sys/devices/foo/bar
+ devpath: /dev/input/by-path/platform-gpio-keys-polled-event
- type: tach
sensors:
- fan3
OpenPOWER on IntegriCloud