Skip to content

Commit e0969a4

Browse files
jannicsirhcel
authored andcommitted
Use a better reference allowing to share rx/tx buffers
1 parent fd1ba03 commit e0969a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spidevioctl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl<'a, 'b> spi_ioc_transfer<'a, 'b> {
112112
/// and writing (in-place transfer).
113113
pub fn read_write_in_place(buf: &'a mut [u8]) -> Self {
114114
// This is allowed according to a comment in the linux source tree:
115-
// https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/spi/spi.h?id=211ddde0823f1442e4ad052a2f30f050145ccada#n1073
115+
// https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/Documentation/spi/spidev.rst?id=211ddde0823f1442e4ad052a2f30f050145ccada#n191
116116
spi_ioc_transfer {
117117
rx_buf: buf.as_ptr() as *const () as usize as u64,
118118
tx_buf: buf.as_ptr() as *const () as usize as u64,

0 commit comments

Comments
 (0)