]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Addition wrapper for fixed16.16 operation
authorKumar, Mahesh <mahesh1.kumar@intel.com>
Wed, 5 Jul 2017 14:31:47 +0000 (20:01 +0530)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 13 Jul 2017 14:38:39 +0000 (16:38 +0200)
commite9d6175b17618e7fd89dff198f0a0c344f46f6ad
tree57b8259d322b82dd1b464814e3ef1428be6aedd3
parenta1fcc20aa9ac660b9c2f6a4dd0e2a6c6b5869d65
drm/i915: Addition wrapper for fixed16.16 operation

This patch introduce addition wrapper for fixed point 16.16 operations.
Which will be used by later patches to avoid direct member variables
access of fixed_16_16_t structure.

add_fixed16 : takes 2 fixed_16_16_t variable & returns fixed_16_16_t
add_fixed16_u32 : takes fixed_16_16_t & u32 variable & returns fixed_16_16_t

Signed-off-by: Mahesh Kumar <mahesh1.kumar@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170705143154.32132-5-mahesh1.kumar@intel.com
drivers/gpu/drm/i915/i915_drv.h