call rk3328 not rk3288 functions in rk3328_pinctrl()
authorjsg <jsg@openbsd.org>
Wed, 21 Jun 2023 01:10:17 +0000 (01:10 +0000)
committerjsg <jsg@openbsd.org>
Wed, 21 Jun 2023 01:10:17 +0000 (01:10 +0000)
tested by and ok kettenis@

sys/dev/fdt/rkpinctrl.c

index 36db072..8b036c8 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: rkpinctrl.c,v 1.12 2023/06/19 13:37:22 kettenis Exp $ */
+/*     $OpenBSD: rkpinctrl.c,v 1.13 2023/06/21 01:10:17 jsg Exp $      */
 /*
  * Copyright (c) 2017, 2018 Mark Kettenis <kettenis@openbsd.org>
  *
@@ -550,8 +550,8 @@ rk3328_pinctrl(uint32_t phandle, void *cookie)
                bank = pins[i];
                idx = pins[i + 1];
                mux = pins[i + 2];
-               pull = rk3288_pull(bank, idx, pins[i + 3]);
-               strength = rk3288_strength(bank, idx, pins[i + 3]);
+               pull = rk3328_pull(bank, idx, pins[i + 3]);
+               strength = rk3328_strength(bank, idx, pins[i + 3]);
 
                if (bank > 3 || idx > 32 || mux > 3)
                        continue;