aboutsummaryrefslogtreecommitdiff
path: root/embassy-mspm0/src/i2c.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-mspm0/src/i2c.rs')
-rw-r--r--embassy-mspm0/src/i2c.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/embassy-mspm0/src/i2c.rs b/embassy-mspm0/src/i2c.rs
index d093a7e21..3406623fb 100644
--- a/embassy-mspm0/src/i2c.rs
+++ b/embassy-mspm0/src/i2c.rs
@@ -56,7 +56,7 @@ pub enum ClockDiv {
56 DivBy8, 56 DivBy8,
57} 57}
58 58
59impl Into<vals::Ratio> for ClockDiv { 59impl ClockDiv {
60 fn into(self) -> vals::Ratio { 60 fn into(self) -> vals::Ratio {
61 match self { 61 match self {
62 Self::DivBy1 => vals::Ratio::DIV_BY_1, 62 Self::DivBy1 => vals::Ratio::DIV_BY_1,
@@ -69,9 +69,7 @@ impl Into<vals::Ratio> for ClockDiv {
69 Self::DivBy8 => vals::Ratio::DIV_BY_8, 69 Self::DivBy8 => vals::Ratio::DIV_BY_8,
70 } 70 }
71 } 71 }
72}
73 72
74impl ClockDiv {
75 fn divider(self) -> u32 { 73 fn divider(self) -> u32 {
76 match self { 74 match self {
77 Self::DivBy1 => 1, 75 Self::DivBy1 => 1,