diff options
author | Sinclair Yeh <syeh@vmware.com> | 2016-04-21 21:29:31 +0300 |
---|---|---|
committer | Sinclair Yeh <syeh@vmware.com> | 2016-04-28 21:07:30 +0300 |
commit | 7851496a32319237456919575e5f4ba62f74cc7d (patch) | |
tree | 3115350947df1fcf593116917c7d9c4bbb0f8aa1 /drivers/regulator/wm831x-isink.c | |
parent | e02e58843153ce80a9fe7588def89b2638d40e64 (diff) | |
download | linux-7851496a32319237456919575e5f4ba62f74cc7d.tar.xz |
drm/vmwgfx: Fix order of operation
mode->hdisplay * (var->bits_per_pixel + 7) gets evaluated before
the division, potentially making the pitch larger than it should
be.
Since the original intention is to do a div-round-up, just use
the macro instead.
Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'drivers/regulator/wm831x-isink.c')
0 files changed, 0 insertions, 0 deletions