From aa37dedcaf653a4bfb15ac503695e28c9225ce0a Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Mon, 4 Apr 2022 16:51:28 +0200 Subject: [PATCH] drivers: pwm: ite_it8xxx2: remove wrong ARG_UNUSED The pwm arg is used in the function, so placing ARG_UNUSED is wrong. Signed-off-by: Gerard Marull-Paretas --- drivers/pwm/pwm_ite_it8xxx2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pwm/pwm_ite_it8xxx2.c b/drivers/pwm/pwm_ite_it8xxx2.c index ee166bfe729..b0d3ff3748b 100644 --- a/drivers/pwm/pwm_ite_it8xxx2.c +++ b/drivers/pwm/pwm_ite_it8xxx2.c @@ -108,8 +108,6 @@ static int pwm_it8xxx2_pin_set(const struct device *dev, uint32_t actual_freq = 0xffffffff, target_freq, deviation, cxcprs, ctr; uint64_t pwm_clk_src; - ARG_UNUSED(pwm); - /* PWM channel clock source gating before configuring */ pwm_enable(dev, 0);