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 {
3737 #[ clap( short, long) ]
3838 socket_path : PathBuf ,
3939
40- /// Path to the video device file. Defaults to /dev/video0.
40+ /// Path to the video device file. Defaults to ` /dev/video0` .
4141 #[ clap( short = 'd' , long, default_value = "/dev/video0" ) ]
4242 v4l2_device : PathBuf ,
4343
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ pub(crate) struct VuVideoBackend {
131131}
132132
133133impl VuVideoBackend {
134- /// Create a new virtio video device for /dev/video<num>.
134+ /// Create a new virtio video device for ` /dev/video<num>` .
135135 pub fn new ( video_path : & Path , video_backend : BackendType ) -> Result < Self > {
136136 let backend = Arc :: new ( RwLock :: new ( video_backends:: alloc_video_backend (
137137 video_backend,
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ const I2C_FUNC_SMBUS_ALL: u64 =
9090/// I2C protocol definitions
9191pub ( crate ) const I2C_M_RD : u16 = 0x0001 ; // read data, from slave to master
9292
93- /// Copied (partially) from Linux's include/uapi/linux/i2c.h
93+ /// Copied (partially) from Linux's ` include/uapi/linux/i2c.h`
9494///
9595/// I2cMsg - an I2C transaction segment beginning with START
9696///
@@ -185,7 +185,7 @@ pub(crate) struct SmbusMsg {
185185}
186186
187187impl 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()` .
189189 ///
190190 /// These smbus related functions try to reverse what Linux does, only
191191 /// 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> {
9595}
9696
9797impl < 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` .
9999 pub fn new (
100100 rng_source : Arc < Mutex < T > > ,
101101 period_ms : u128 ,
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ pub struct Sensor {
239239 notify_enabled : bool ,
240240 /// If this sensor supports notifying the frontend actively, it should
241241 /// record notification device file here. (e.g. For iio device, the file
242- /// is /dev/iio:deviceX)
242+ /// is ` /dev/iio:deviceX` )
243243 pub notify_dev : Option < File > ,
244244
245245 /// 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 {
190190 /// The channel scan type follows the rule
191191 /// If repeat > 1, "%s:%c%d/%dX%d>>%u\n"
192192 /// 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`
194194 fn new ( value : String ) -> Option < ChanScanType > {
195195 let error_message = "Error format from iio device!" ;
196196 let endianness = match & value[ 0 ..2 ] {
@@ -260,7 +260,7 @@ struct Axis {
260260 /// `Bit[8]` of axis_attributes_low is set to 1.
261261 custom_resolution : u64 ,
262262 /// 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.
264264 /// The ChanScanType is parsed from "scan_elements/\<channel>_type"
265265 scan_type : Option < ChanScanType > ,
266266}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ pub struct SpiIocTransfer {
3939}
4040
4141/// 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
4343/// details.
4444const _IOC_SIZEBITS: u32 = 14 ;
4545const _IOC_SIZESHIFT: u32 = 16 ;
You can’t perform that action at this time.
0 commit comments