]> Git Repo - linux.git/blobdiff - drivers/pwm/pwm-stm32-lp.c
mfd: cros-ec: Increase maximum mkbp event size
[linux.git] / drivers / pwm / pwm-stm32-lp.c
index 1ac9e438414291a3330edfd5ad5e05370703d4b5..7c13e2505080e1495997b369800bcd05379ff018 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * STM32 Low-Power Timer PWM driver
  *
@@ -5,8 +6,6 @@
  *
  * Author: Gerald Baeza <[email protected]>
  *
- * License terms: GNU General Public License (GPL), version 2
- *
  * Inspired by Gerald Baeza's pwm-stm32 driver
  */
 
@@ -203,6 +202,8 @@ static int stm32_pwm_lp_probe(struct platform_device *pdev)
        priv->chip.dev = &pdev->dev;
        priv->chip.ops = &stm32_pwm_lp_ops;
        priv->chip.npwm = 1;
+       priv->chip.of_xlate = of_pwm_xlate_with_flags;
+       priv->chip.of_pwm_n_cells = 3;
 
        ret = pwmchip_add(&priv->chip);
        if (ret < 0)
This page took 0.034596 seconds and 4 git commands to generate.