mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 13:34:10 +08:00
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>
This commit is contained in:
parent
90fd68dcf9
commit
2d8e60e8b0
@ -241,15 +241,15 @@ static int vmwgfx_pm_notifier(struct notifier_block *nb, unsigned long val,
|
|||||||
void *ptr);
|
void *ptr);
|
||||||
|
|
||||||
MODULE_PARM_DESC(enable_fbdev, "Enable vmwgfx fbdev");
|
MODULE_PARM_DESC(enable_fbdev, "Enable vmwgfx fbdev");
|
||||||
module_param_named(enable_fbdev, enable_fbdev, int, 0600);
|
module_param_named(enable_fbdev, enable_fbdev, int, S_IRUSR | S_IWUSR);
|
||||||
MODULE_PARM_DESC(force_dma_api, "Force using the DMA API for TTM pages");
|
MODULE_PARM_DESC(force_dma_api, "Force using the DMA API for TTM pages");
|
||||||
module_param_named(force_dma_api, vmw_force_iommu, int, 0600);
|
module_param_named(force_dma_api, vmw_force_iommu, int, S_IRUSR | S_IWUSR);
|
||||||
MODULE_PARM_DESC(restrict_iommu, "Try to limit IOMMU usage for TTM pages");
|
MODULE_PARM_DESC(restrict_iommu, "Try to limit IOMMU usage for TTM pages");
|
||||||
module_param_named(restrict_iommu, vmw_restrict_iommu, int, 0600);
|
module_param_named(restrict_iommu, vmw_restrict_iommu, int, S_IRUSR | S_IWUSR);
|
||||||
MODULE_PARM_DESC(force_coherent, "Force coherent TTM pages");
|
MODULE_PARM_DESC(force_coherent, "Force coherent TTM pages");
|
||||||
module_param_named(force_coherent, vmw_force_coherent, int, 0600);
|
module_param_named(force_coherent, vmw_force_coherent, int, S_IRUSR | S_IWUSR);
|
||||||
MODULE_PARM_DESC(restrict_dma_mask, "Restrict DMA mask to 44 bits with IOMMU");
|
MODULE_PARM_DESC(restrict_dma_mask, "Restrict DMA mask to 44 bits with IOMMU");
|
||||||
module_param_named(restrict_dma_mask, vmw_restrict_dma_mask, int, 0600);
|
module_param_named(restrict_dma_mask, vmw_restrict_dma_mask, int, S_IRUSR | S_IWUSR);
|
||||||
MODULE_PARM_DESC(assume_16bpp, "Assume 16-bpp when filtering modes");
|
MODULE_PARM_DESC(assume_16bpp, "Assume 16-bpp when filtering modes");
|
||||||
module_param_named(assume_16bpp, vmw_assume_16bpp, int, 0600);
|
module_param_named(assume_16bpp, vmw_assume_16bpp, int, 0600);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user