pwm: rockchip: replace duty_table with wave_table in irq callbacks

Change-Id: If0f81d6eb2c6d922e9ceab9fe440fe3555bc9112
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
This commit is contained in:
Damon Ding
2025-04-29 10:34:47 +08:00
committed by DingLingsong
parent 00b6ef8285
commit 2bebef2839

View File

@@ -32,11 +32,11 @@ static void rockchip_pwm_wave_middle_callback(struct pwm_device *pwm)
* struct rockchip_pwm_wave_table and call rockchip_pwm_set_wave().
*
* struct rockchip_pwm_wave_config wave_config;
* struct rockchip_pwm_wave_table duty_table;
* struct rockchip_pwm_wave_table wave_table;
*
* //fill the duty table
* //fill the wave table
* ......
* wave_config.duty_table = &duty_table;
* wave_config.wave_table = &wave_table;
* wave_config.enable = true;
* rockchip_pwm_set_wave(pwm, &wave_config);
*
@@ -50,11 +50,11 @@ static void rockchip_pwm_wave_max_callback(struct pwm_device *pwm)
* struct rockchip_pwm_wave_table and call rockchip_pwm_set_wave().
*
* struct rockchip_pwm_wave_config wave_config;
* struct rockchip_pwm_wave_table duty_table;
* struct rockchip_pwm_wave_table wave_table;
*
* //fill the duty table
* //fill the wave table
* ......
* wave_config.duty_table = &duty_table;
* wave_config.wave_table = &wave_table;
* wave_config.enable = true;
* rockchip_pwm_set_wave(pwm, &wave_config);
*