]> asedeno.scripts.mit.edu Git - linux.git/commit
pwm: tegra: Use DIV_ROUND_CLOSEST_ULL() instead of local implementation
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 7 Apr 2017 09:33:59 +0000 (15:03 +0530)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 12 Apr 2017 14:08:00 +0000 (16:08 +0200)
commit90241fb9b55a36edd9dafb8de679f66836e84369
tree147363c619b3f62554eed269fa374f0f5c41e2a4
parentcaf065f8fd583b43a3f95d84c8a0a0d07597963b
pwm: tegra: Use DIV_ROUND_CLOSEST_ULL() instead of local implementation

Use macro DIV_ROUND_CLOSEST_ULL() for 64-bit division to closest one
instead of implementing the same locally. This increase readability.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-tegra.c