]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - include/linux/pwm.h
pwm: Add pwmchip_add_with_polarity() API
authorTim Kryger <tim.kryger@gmail.com>
Tue, 26 May 2015 20:08:16 +0000 (13:08 -0700)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 12 Jun 2015 09:36:30 +0000 (11:36 +0200)
commitb6a00fae9760a49114016e4764d09e522a5ba5b6
tree88bb0e1cc5c1ca9c4eb66d8c7a2a3c54bf958387
parent472ac3dcac108d6648ee28616c6de1e3b0bb361f
pwm: Add pwmchip_add_with_polarity() API

Add a new function to register a PWM chip with channels that have their
initial polarity as specified by an additional parameter. This benefits
drivers of controllers that by default operate with inversed polarity
by removing the need to modify the polarity during initialization.

Signed-off-by: Tim Kryger <tim.kryger@gmail.com>
Signed-off-by: Jonathan Richardson <jonathar@broadcom.com>
[thierry.reding@gmail.com: export pwmchip_add_with_polarity()]
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/core.c
include/linux/pwm.h