]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pwm: lpc-18xx: use pwm_set_chip_data
authoroliver@schinagl.nl <oliver@schinagl.nl>
Thu, 25 Aug 2016 16:47:09 +0000 (18:47 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 8 Sep 2016 08:55:05 +0000 (10:55 +0200)
commitfe0e2cf931fc3c156850ae5184e7ecf9576431f8
treeca56774cf1c5cf091b23915a3b807d4914dca4be
parent42ddcf4f9ebbfeac75fac3851f2807833b222399
pwm: lpc-18xx: use pwm_set_chip_data

The lpc-18xx driver currently manipulates the pwm_device struct directly
rather than using the pwm_set_chip_data() function. While the current
method may save a clock cycle or two, using the explicit function call
makes it more obvious that data is set to the local chip data pointer.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Reviewed-by: Ariel D'Alessandro <ariel@vanguardiasur.com.ar>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-lpc18xx-sct.c