mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2025-12-28 16:29:45 +00:00
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:
parent
d1539d5274
commit
8a6c25f3e7
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -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",
|
||||
]
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user