Re: [PATCH 2/5] pwm: Drop useless member .of_pwm_n_cells of struct pwm_chip

2024-01-09 Thread Doug Anderson
Hi, On Tue, Jan 9, 2024 at 1:35 PM Uwe Kleine-König wrote: > > Apart from the two of_xlate implementations this member is write-only. > In the of_xlate functions of_pwm_xlate_with_flags() and > of_pwm_single_xlate() it's more sensible to check for args->args_count > because this is what is actual

[PATCH 2/5] pwm: Drop useless member .of_pwm_n_cells of struct pwm_chip

2024-01-09 Thread Uwe Kleine-König
Apart from the two of_xlate implementations this member is write-only. In the of_xlate functions of_pwm_xlate_with_flags() and of_pwm_single_xlate() it's more sensible to check for args->args_count because this is what is actually used in the device tree. Signed-off-by: Uwe Kleine-König --- driv