]> 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)
commitaf508250f094a9f7d797e58ffff2d40811cdb333
treebd214710bd8b7196870b7f8734189722611fbdc6
parent7b0d9a80abb0e5680cf13ebb5856f6e369765a1a
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