drm/vmwgfx: Replace numeric parameter like 0444 with macro
authorBaole Ni <baolex.ni@intel.com>
Tue, 2 Aug 2016 10:50:25 +0000 (18:50 +0800)
committerSinclair Yeh <syeh@vmware.com>
Mon, 10 Oct 2016 18:14:20 +0000 (11:14 -0700)
commit2d8e60e8b0742b7a5cddc806fe38bb81ee876c33
treebd214710bd8b7196870b7f8734189722611fbdc6
parent90fd68dcf9a763f7e575c8467415bd8a66d073f4
drm/vmwgfx: Replace numeric parameter like 0444 with macro

I find that the developers often just specified the numeric value
when calling a macro which is defined with a parameter for access
permission.

As we know, these numeric value for access permission have had the
corresponding macro, and that using macro can improve the robustness and
readability of the code, thus, I suggest replacing the numeric parameter
with the macro.

Signed-off-by: Chuansheng Liu <chuansheng.liu@intel.com>
Signed-off-by: Baole Ni <baolex.ni@intel.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c