gpio: Update to a newer version of libgpiod

Update to a newer version of libgpiod crates.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
This commit is contained in:
Viresh Kumar 2023-01-20 14:23:51 +05:30 committed by Viresh Kumar
parent d1539d5274
commit 8a6c25f3e7
2 changed files with 4 additions and 4 deletions

4
Cargo.lock generated
View File

@ -339,7 +339,7 @@ checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79"
[[package]]
name = "libgpiod"
version = "0.1.0"
source = "git+https://github.com/vireshk/libgpiod?branch=vhost-gpio#d7b36c56170331699fd5e4e18918af81333aa64a"
source = "git+https://github.com/vireshk/libgpiod?branch=vhost-gpio#b412261453c3bcde60ac7597f19a042899acb68a"
dependencies = [
"errno",
"intmap",
@ -351,7 +351,7 @@ dependencies = [
[[package]]
name = "libgpiod-sys"
version = "0.1.0"
source = "git+https://github.com/vireshk/libgpiod?branch=vhost-gpio#d7b36c56170331699fd5e4e18918af81333aa64a"
source = "git+https://github.com/vireshk/libgpiod?branch=vhost-gpio#b412261453c3bcde60ac7597f19a042899acb68a"
dependencies = [
"cc",
]

View File

@ -219,7 +219,7 @@ impl GpioDevice for PhysDevice {
state.request = Some(Arc::new(
self.chip
.request_lines(&rconfig, &lconfig)
.request_lines(Some(&rconfig), &lconfig)
.map_err(Error::GpiodFailed)?,
));
}
@ -338,7 +338,7 @@ impl GpioDevice for PhysDevice {
// Wait for the interrupt for a second.
if !request
.wait_edge_event(Some(Duration::new(1, 0)))
.wait_edge_events(Some(Duration::new(1, 0)))
.map_err(Error::GpiodFailed)?
{
return Ok(false);