kern_hw: fix return type

This commit is contained in:
spaqin 2022-03-04 14:07:39 +08:00 committed by Sébastien Bourdeauducq
parent 51fa1b5e5e
commit 232f28c0e8

View File

@ -116,7 +116,7 @@ mod remote_i2c {
}
}
pub fn switch_select(io: &Io, aux_mutex: &Mutex, linkno: u8, destination: u8, busno: u8, address: u8, mask: u8) -> Result<u8, &'static str> {
pub fn switch_select(io: &Io, aux_mutex: &Mutex, linkno: u8, destination: u8, busno: u8, address: u8, mask: u8) -> Result<(), &'static str> {
let reply = drtio::aux_transact(io, aux_mutex, linkno, &drtioaux::Packet::I2cSwitchSelectRequest {
destination: destination,
busno: busno,