diff options
author | Matt Spinler <spinler@us.ibm.com> | 2018-08-08 11:15:26 -0500 |
---|---|---|
committer | Matt Spinler <spinler@us.ibm.com> | 2018-08-14 15:42:00 -0500 |
commit | 0f3fd5aa2d41a1b1bde5df471db74519ec82ef35 (patch) | |
tree | 9ed12c73e416a38a520f2bb867e3aca2f50ad8d1 /pciedetect | |
parent | 0f0946bef6fb613b65b344b966e44452270d0e82 (diff) | |
download | talos-skeleton-0f3fd5aa2d41a1b1bde5df471db74519ec82ef35.tar.gz talos-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 'pciedetect')
-rw-r--r-- | pciedetect/pcie_slot_present_obj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pciedetect/pcie_slot_present_obj.c b/pciedetect/pcie_slot_present_obj.c index 4828051..0dc4475 100644 --- a/pciedetect/pcie_slot_present_obj.c +++ b/pciedetect/pcie_slot_present_obj.c @@ -108,11 +108,11 @@ exit: } int -get_presence(GDBusConnection* connection, GPIO* gpio, uint8_t* present) +get_presence(GPIO* gpio, uint8_t* present) { int rc = GPIO_OK; do { - rc = gpio_init(connection,gpio); + rc = gpio_init(gpio); if(rc != GPIO_OK) { break; } uint8_t gpio_val; rc = gpio_open(gpio); @@ -204,7 +204,7 @@ main(gint argc, gchar *argv[]) do { rc = get_object(c,sys_proxy,&slots[i],&obj_info); if(rc) { break; } - rc = get_presence(c,&slots[i],&present); + rc = get_presence(&slots[i],&present); //if (rc) { break; } // TODO: send correct state if(present == 0) { |