embassy-rp: inline I2c::regs

It just returns a literal constant, so there's no reason not to always inline it.
This commit is contained in:
Jeremy Fitzhardinge 2022-09-28 10:00:30 -07:00
parent aabc02506b
commit 90d392205f

View file

@ -499,6 +499,7 @@ macro_rules! impl_instance {
type Interrupt = crate::interrupt::$irq; type Interrupt = crate::interrupt::$irq;
#[inline]
fn regs() -> pac::i2c::I2c { fn regs() -> pac::i2c::I2c {
pac::$type pac::$type
} }