]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
lib/math: move int_pow() from pwm_bl.c for wider use
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 14 May 2019 22:43:08 +0000 (15:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 May 2019 02:52:49 +0000 (19:52 -0700)
commit9f6158946987a5ce3f16da097d18f240a89db417
treec232e7df2397d4186b39a1a4de9bb2534a60170f
parent2c64e9cb0b6b858901e9a386860d7d929d1cbaeb
lib/math: move int_pow() from pwm_bl.c for wider use

The integer exponentiation is used in few places and might be used in
the future by other call sites.  Move it to wider use.

Link: http://lkml.kernel.org/r/20190323172531.80025-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Ray Jui <rjui@broadcom.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/pwm_bl.c
include/linux/kernel.h
lib/math/Makefile
lib/math/int_pow.c [new file with mode: 0644]