Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Rust-for-Linux/linux
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: baa41ff37d5087ac38dcf99018eb9862ea53a9bb
Choose a base ref
..
head repository: Rust-for-Linux/linux
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c13f777a3a5e5a9a4ae8c1415d327742618233c3
Choose a head ref
Showing with 152 additions and 80 deletions.
  1. +2 −0 rust/helpers.c
  2. +1 −1 rust/kernel/i2c.rs
  3. +1 −1 rust/kernel/of.rs
  4. +148 −78 rust/kernel/regulator/driver.rs
2 changes: 2 additions & 0 deletions rust/helpers.c
Original file line number Diff line number Diff line change
@@ -299,12 +299,14 @@ void rust_helper_i2c_set_clientdata(struct i2c_client *client, void *data)
}
EXPORT_SYMBOL_GPL(rust_helper_i2c_set_clientdata);

#ifdef CONFIG_REGMAP_I2C
struct regmap *rust_helper_regmap_init_i2c(struct i2c_client *i2c,
const struct regmap_config *config)
{
return regmap_init_i2c(i2c, config);
}
EXPORT_SYMBOL_GPL(rust_helper_regmap_init_i2c);
#endif

int rust_helper_regmap_field_write(struct regmap_field *field, unsigned int val)
{
2 changes: 1 addition & 1 deletion rust/kernel/i2c.rs
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ impl DeviceId {
/// ```
/// use kernel::i2c;
///
/// define_i2c_id_table! {MY_ID_TABLE, u32, [
/// kernel::define_i2c_id_table! {MY_ID_TABLE, u32, [
/// (i2c::DeviceId(b"test-device1"), Some(0xff)),
/// (i2c::DeviceId(b"test-device2"), None),
/// ]};
2 changes: 1 addition & 1 deletion rust/kernel/of.rs
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ pub enum DeviceId {
///
/// # Example
///
/// ```
/// ```ignore
/// # use kernel::{define_of_id_table, module_of_id_table, driver_of_id_table};
/// use kernel::of;
///
Loading