pwm: Add hardware readout infrastructure
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 14 Apr 2016 19:17:40 +0000 (21:17 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 17 May 2016 12:48:03 +0000 (14:48 +0200)
commit15fa8a43c147213a9563903c87b29671035eb6e8
treeececf11f09885f32d8b27334d180c8a080882000
parent09a7e4a3d9fcb95ade2cb02167e85fbeb8315ce0
pwm: Add hardware readout infrastructure

Add a ->get_state() function to the pwm_ops struct to let PWM drivers
initialize the PWM state attached to a PWM device.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/core.c
include/linux/pwm.h