summaryrefslogtreecommitdiffstats
path: root/pwrbutton
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2018-08-08 11:15:26 -0500
committerMatt Spinler <spinler@us.ibm.com>2018-08-14 15:42:00 -0500
commit0f3fd5aa2d41a1b1bde5df471db74519ec82ef35 (patch)
tree9ed12c73e416a38a520f2bb867e3aca2f50ad8d1 /pwrbutton
parent0f0946bef6fb613b65b344b966e44452270d0e82 (diff)
downloadblackbird-skeleton-0f3fd5aa2d41a1b1bde5df471db74519ec82ef35.tar.gz
blackbird-skeleton-0f3fd5aa2d41a1b1bde5df471db74519ec82ef35.zip
Remove unnecessary args from GPIO functions
Now that gpio_init() and read_gpios() doesn't use D-Bus, they don't need the D-Bus connection parameter. Change-Id: Id7f3ee6547bed7c0c0eed5d75cba2d6ff239d0fa Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'pwrbutton')
-rw-r--r--pwrbutton/button_power_obj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pwrbutton/button_power_obj.c b/pwrbutton/button_power_obj.c
index 58a9cad..2c3d32f 100644
--- a/pwrbutton/button_power_obj.c
+++ b/pwrbutton/button_power_obj.c
@@ -113,7 +113,7 @@ on_bus_acquired(GDBusConnection *connection,
// get gpio device paths
int rc = GPIO_OK;
do {
- rc = gpio_init(connection,&gpio_button);
+ rc = gpio_init(&gpio_button);
gpio_inits_done();
if(rc != GPIO_OK) { break; }
rc = gpio_open_interrupt(&gpio_button,on_button_interrupt,object);
OpenPOWER on IntegriCloud