On Thu, Jul 21, 2022 at 12:31:23PM +0200, Uwe Kleine-König wrote: > Instead of explicitly using PWM_SIFIVE_PWMCMP0 + pwm->hwpwm * > PWM_SIFIVE_SIZE_PWMCMP for each access to one of the PWMCMP registers, > introduce a macro that takes the hwpwm id as parameter. > > For the register definition using a plain 4 instead of the cpp constant > PWM_SIFIVE_SIZE_PWMCMP is easier to read, so define the offset macro > without the constant. The latter can then be dropped as there are no > users left. > > Signed-off-by: Uwe Kleine-König > --- > drivers/pwm/pwm-sifive.c | 10 +++------- > 1 file changed, 3 insertions(+), 7 deletions(-) I've applied the whole series now, thanks. Thierry