]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01653d313d8ef5c069ca4d727881dc67dfe0a3b8
treebd214710bd8b7196870b7f8734189722611fbdc6
parentb8f4746d9b6dcdd87b5d1e11bcad69bea3b866e9
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