aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/machine/machine_rp2040_clocks.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/machine_rp2040_clocks.go b/src/machine/machine_rp2040_clocks.go
index 8fcc4e81a..eed86f8e0 100644
--- a/src/machine/machine_rp2040_clocks.go
+++ b/src/machine/machine_rp2040_clocks.go
@@ -83,8 +83,8 @@ type clock struct {
}
// clock returns the clock identified by cix.
-func (clks *clocksType) clock(cix clockIndex) *clock {
- return &clock{
+func (clks *clocksType) clock(cix clockIndex) clock {
+ return clock{
&clks.clk[cix],
cix,
}