Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

pwm: clps711x: Drop custom .of_xlate() callback

The default of_xlate callback (of_pwm_xlate_with_flags()) does
everything the drivers expects from its .of_xlate() callback. So drop
the custom implementation.

Link: https://lore.kernel.org/r/f58336c298d536107de5cab6a57e19f957ab326c.1704835845.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

-10
-10
drivers/pwm/pwm-clps711x.c
··· 74 74 .apply = clps711x_pwm_apply, 75 75 }; 76 76 77 - static struct pwm_device *clps711x_pwm_xlate(struct pwm_chip *chip, 78 - const struct of_phandle_args *args) 79 - { 80 - if (args->args[0] >= chip->npwm) 81 - return ERR_PTR(-EINVAL); 82 - 83 - return pwm_request_from_chip(chip, args->args[0], NULL); 84 - } 85 - 86 77 static int clps711x_pwm_probe(struct platform_device *pdev) 87 78 { 88 79 struct clps711x_chip *priv; ··· 93 102 priv->chip.ops = &clps711x_pwm_ops; 94 103 priv->chip.dev = &pdev->dev; 95 104 priv->chip.npwm = 2; 96 - priv->chip.of_xlate = clps711x_pwm_xlate; 97 105 98 106 spin_lock_init(&priv->lock); 99 107