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

pwm: bcm2835: Support for polarity setting via DT

This adds support for the third (optional) pwm cell to specify the
polarity, which is needed by display backlights for example.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>

authored by

Stefan Wahren and committed by
Thierry Reding
8a88b2a2 46421d9d

+2
+2
drivers/pwm/pwm-bcm2835.c
··· 167 167 pc->chip.dev = &pdev->dev; 168 168 pc->chip.ops = &bcm2835_pwm_ops; 169 169 pc->chip.npwm = 2; 170 + pc->chip.of_xlate = of_pwm_xlate_with_flags; 171 + pc->chip.of_pwm_n_cells = 3; 170 172 171 173 platform_set_drvdata(pdev, pc); 172 174