]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic-helper: Use bitwise or for filling a bitmask
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 15 Jun 2018 17:07:34 +0000 (20:07 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 5 Jul 2018 19:33:57 +0000 (22:33 +0300)
commit84bb589af928951f6040b46595a2720ea9277d77
treeaf50ba2182fbcae0025a614b5d163d2c58d4a56d
parent2b0e1db4fe6d7ed09c1990606ff55507b9065a8b
drm/atomic-helper: Use bitwise or for filling a bitmask

Using += to set the bits in a mask looks funny. It works in this case
because we never set the same bit twice. But let's switch to |= to
make this look more regular.

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180615170734.2774-1-ville.syrjala@linux.intel.com
Reviewed-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/drm_atomic_helper.c