]> Git Repo - linux.git/blobdiff - drivers/pwm/pwm-stm32.c
mfd: cros-ec: Increase maximum mkbp event size
[linux.git] / drivers / pwm / pwm-stm32.c
index 09383c6720fb623c59bf387909af4eaff010edba..4f842550fbd127ce1b0f53522dfb7f4e60b74329 100644 (file)
@@ -484,9 +484,7 @@ static int stm32_pwm_apply_locked(struct pwm_chip *chip, struct pwm_device *pwm,
 static const struct pwm_ops stm32pwm_ops = {
        .owner = THIS_MODULE,
        .apply = stm32_pwm_apply_locked,
-#if IS_ENABLED(CONFIG_DMA_ENGINE)
-       .capture = stm32_pwm_capture,
-#endif
+       .capture = IS_ENABLED(CONFIG_DMA_ENGINE) ? stm32_pwm_capture : NULL,
 };
 
 static int stm32_pwm_set_breakinput(struct stm32_pwm *priv,
This page took 0.031427 seconds and 4 git commands to generate.