File tree Expand file tree Collapse file tree 7 files changed +9
-9
lines changed
staging/vhost-device-video/src
vhost-device-scmi/src/devices Expand file tree Collapse file tree 7 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ struct VideoArgs {
37
37
#[ clap( short, long) ]
38
38
socket_path : PathBuf ,
39
39
40
- /// Path to the video device file. Defaults to /dev/video0.
40
+ /// Path to the video device file. Defaults to ` /dev/video0` .
41
41
#[ clap( short = 'd' , long, default_value = "/dev/video0" ) ]
42
42
v4l2_device : PathBuf ,
43
43
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ pub(crate) struct VuVideoBackend {
131
131
}
132
132
133
133
impl VuVideoBackend {
134
- /// Create a new virtio video device for /dev/video<num>.
134
+ /// Create a new virtio video device for ` /dev/video<num>` .
135
135
pub fn new ( video_path : & Path , video_backend : BackendType ) -> Result < Self > {
136
136
let backend = Arc :: new ( RwLock :: new ( video_backends:: alloc_video_backend (
137
137
video_backend,
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ const I2C_FUNC_SMBUS_ALL: u64 =
90
90
/// I2C protocol definitions
91
91
pub ( crate ) const I2C_M_RD : u16 = 0x0001 ; // read data, from slave to master
92
92
93
- /// Copied (partially) from Linux's include/uapi/linux/i2c.h
93
+ /// Copied (partially) from Linux's ` include/uapi/linux/i2c.h`
94
94
///
95
95
/// I2cMsg - an I2C transaction segment beginning with START
96
96
///
@@ -185,7 +185,7 @@ pub(crate) struct SmbusMsg {
185
185
}
186
186
187
187
impl SmbusMsg {
188
- /// Based on Linux's drivers/i2c/i2c-core-smbus.c:i2c_smbus_xfer_emulated().
188
+ /// Based on Linux's ` drivers/i2c/i2c-core-smbus.c:i2c_smbus_xfer_emulated()` .
189
189
///
190
190
/// These smbus related functions try to reverse what Linux does, only
191
191
/// support basic modes (up to word transfer).
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ pub(crate) struct VuRngBackend<T: ReadVolatile> {
95
95
}
96
96
97
97
impl < T : ReadVolatile > VuRngBackend < T > {
98
- /// Create a new virtio rng device that gets random data from /dev/urandom.
98
+ /// Create a new virtio rng device that gets random data from ` /dev/urandom` .
99
99
pub fn new (
100
100
rng_source : Arc < Mutex < T > > ,
101
101
period_ms : u128 ,
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ pub struct Sensor {
239
239
notify_enabled : bool ,
240
240
/// If this sensor supports notifying the frontend actively, it should
241
241
/// record notification device file here. (e.g. For iio device, the file
242
- /// is /dev/iio:deviceX)
242
+ /// is ` /dev/iio:deviceX` )
243
243
pub notify_dev : Option < File > ,
244
244
245
245
/// Sensor id, to identify the sensor in notification lookup.
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ impl ChanScanType {
190
190
/// The channel scan type follows the rule
191
191
/// If repeat > 1, "%s:%c%d/%dX%d>>%u\n"
192
192
/// Else, "%s:%c%d/%d>>%u\n".
193
- /// For more details, see kernel " drivers/iio/industrialio-buffer.c"
193
+ /// For more details, see kernel ` drivers/iio/industrialio-buffer.c`
194
194
fn new ( value : String ) -> Option < ChanScanType > {
195
195
let error_message = "Error format from iio device!" ;
196
196
let endianness = match & value[ 0 ..2 ] {
@@ -260,7 +260,7 @@ struct Axis {
260
260
/// `Bit[8]` of axis_attributes_low is set to 1.
261
261
custom_resolution : u64 ,
262
262
/// Channel scan type, necessary if the sensor supports notifications.
263
- /// The data from /dev/iio:deviceX will be formatted according to this.
263
+ /// The data from ` /dev/iio:deviceX` will be formatted according to this.
264
264
/// The ChanScanType is parsed from "scan_elements/\<channel>_type"
265
265
scan_type : Option < ChanScanType > ,
266
266
}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ pub struct SpiIocTransfer {
39
39
}
40
40
41
41
/// Linux SPI definitions
42
- /// IOCTL commands, refer Linux's Documentation/spi/spidev.rst for further
42
+ /// IOCTL commands, refer Linux's ` Documentation/spi/spidev.rst` for further
43
43
/// details.
44
44
const _IOC_SIZEBITS: u32 = 14 ;
45
45
const _IOC_SIZESHIFT: u32 = 16 ;
You can’t perform that action at this time.
0 commit comments