All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] backlight: pwm_bl: optimizations and small fix for cie1913
@ 2019-10-08 12:03 ` Rasmus Villemoes
  0 siblings, 0 replies; 21+ messages in thread
From: Rasmus Villemoes @ 2019-10-08 12:03 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones,
	Daniel Thompson, Jingoo Han, Bartlomiej Zolnierkiewicz,
	linux-pwm, dri-devel, linux-fbdev, linux-kernel
  Cc: Rasmus Villemoes

These patches optimize the cie1913() implementation by using fewer 64
bit divisions and multiplications. It also contains a minor fix for
the linear constant used.

v2:
- Drop patch 5.
- Fix thinko in patch 4, otherwise no code change.
- Better changelog in patch 3.
- Add Daniel's Reviewed-By to the four patches.

Daniel, I took the liberty of adding your R-B to patch 4 despite
changing it a little to fix a thinko - I should add 1<<31 and not
1<<15. Please tell me if that was inappropriate.

Rasmus Villemoes (4):
  backlight: pwm_bl: fix cie1913 comments and constant
  backlight: pwm_bl: eliminate a 64/32 division
  backlight: pwm_bl: drop use of int_pow()
  backlight: pwm_bl: switch to power-of-2 base for fixed-point math

 drivers/video/backlight/pwm_bl.c | 29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2019-10-24  7:27 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-08 12:03 [PATCH v2 0/4] backlight: pwm_bl: optimizations and small fix for cie1913 Rasmus Villemoes
2019-10-08 12:03 ` Rasmus Villemoes
2019-10-08 12:03 ` [PATCH v2 1/4] backlight: pwm_bl: fix cie1913 comments and constant Rasmus Villemoes
2019-10-08 12:03   ` Rasmus Villemoes
2019-10-14  7:27   ` Lee Jones
2019-10-14  7:27     ` Lee Jones
2019-10-23 20:21     ` Rasmus Villemoes
2019-10-23 20:21       ` Rasmus Villemoes
2019-10-23 20:21       ` Rasmus Villemoes
2019-10-08 12:03 ` [PATCH v2 2/4] backlight: pwm_bl: eliminate a 64/32 division Rasmus Villemoes
2019-10-08 12:03   ` Rasmus Villemoes
2019-10-14  7:27   ` Lee Jones
2019-10-14  7:27     ` Lee Jones
2019-10-08 12:03 ` [PATCH v2 3/4] backlight: pwm_bl: drop use of int_pow() Rasmus Villemoes
2019-10-08 12:03   ` Rasmus Villemoes
2019-10-14  7:27   ` Lee Jones
2019-10-14  7:27     ` Lee Jones
2019-10-08 12:03 ` [PATCH v2 4/4] backlight: pwm_bl: switch to power-of-2 base for fixed-point math Rasmus Villemoes
2019-10-08 12:03   ` Rasmus Villemoes
2019-10-14  7:27   ` Lee Jones
2019-10-14  7:27     ` Lee Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.