Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
NeroReflex committed Dec 31, 2024
1 parent 57c8a09 commit e459060
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ impl CompositeDeviceConfig {
true
}

/// Returns true if a given iio device is within a list of iio configs.
/// Returns true if a given led device is within a list of led configs.
pub fn has_matching_led(&self, device: &UdevDevice, led_config: &Led) -> bool {
log::trace!("Checking led config: {:?} against {:?}", led_config, device);

Expand Down
4 changes: 2 additions & 2 deletions src/dbus/interface/source/iio_imu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use zbus_macros::interface;

use crate::input::source::iio::get_dbus_path;

/// DBusInterface exposing information about a HIDRaw device
/// DBusInterface exposing information about a iio device
pub struct SourceIioImuInterface {
device: UdevDevice,
}
Expand All @@ -16,7 +16,7 @@ impl SourceIioImuInterface {
SourceIioImuInterface { device }
}

/// Creates a new instance of the source hidraw interface on DBus. Returns
/// Creates a new instance of the source imu interface on DBus. Returns
/// a structure with information about the source device.
pub async fn listen_on_dbus(
conn: Connection,
Expand Down
5 changes: 3 additions & 2 deletions src/dbus/interface/source/led.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ use crate::udev::device::UdevDevice;
use std::error::Error;
use zbus::{fdo, Connection};
use zbus_macros::interface;
/// DBusInterface exposing information about a HIDRaw device

/// DBusInterface exposing information about a led device
pub struct SourceLedInterface {
device: UdevDevice,
}
impl SourceLedInterface {
pub fn new(device: UdevDevice) -> SourceLedInterface {
SourceLedInterface { device }
}
/// Creates a new instance of the source hidraw interface on DBus. Returns
/// Creates a new instance of the source led interface on DBus. Returns
/// a structure with information about the source device.
pub async fn listen_on_dbus(
conn: Connection,
Expand Down

0 comments on commit e459060

Please sign in to comment.