pwm: Introduce local struct pwm_chip in pwm_apply_state()
authorUwe Kleine-König <uwe@kleine-koenig.org>
Sat, 24 Aug 2019 15:37:02 +0000 (17:37 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 20 Sep 2019 23:48:54 +0000 (01:48 +0200)
commitfc3c5512e337bdb8b019883ea9078bbccc00c4e9
tree9e1c0b6e518247516c65a36b159954df65280d86
parentba73deb16ff5b2d70b1ffc025c84c1126aad7fea
pwm: Introduce local struct pwm_chip in pwm_apply_state()

pwm->chip is dereferenced several times in the pwm_apply_state()
function. Introducing a local variable for it helps keeping some lines a
bit shorter.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/core.c