Re: [PATCH 1/5] pwm: rz-mtu3: fix prescale check when enabling 2nd channel
From: Geert Uytterhoeven
Date: Mon Mar 16 2026 - 14:27:11 EST
Hi Cosmin,
On Mon, 16 Mar 2026 at 16:52, Cosmin-Gabriel Tanislav
<cosmin-gabriel.tanislav.xa@xxxxxxxxxxx> wrote:
> static int rz_mtu3_sibling_hwpwm(u32 hwpwm, u32 *sibling_hwpwm)
Unused sibling_hwpwm?
> {
> if (!rz_mtu3_hwpwm_is_primary(hwpwm))
> return hwpwm - 1;
>
> if (rz_mtu3_hwpwm_is_primary(hwpwm + 1))
> return -EINVAL;
>
> return hwpwm + 1;
> }
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds