drm/udl: Move log-cpp code out of udl_damage_handler()
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 6 Dec 2019 08:59:52 +0000 (09:59 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 6 Dec 2019 12:51:52 +0000 (13:51 +0100)
commitcd45e30a7099e5fcbc25fcfa035fa604255afdee
tree51db71b4a34cc6fed8b0f8769ee0970a7d62865d
parentffc90486e320ba68f63de39fe04d757ce0cf49e5
drm/udl: Move log-cpp code out of udl_damage_handler()

Computing the cpp value's logarithm in a separate helper function makes
the damage-handler code more readable.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191206085954.9697-6-tzimmermann@suse.de
drivers/gpu/drm/udl/udl_fb.c