Displaying 2 results from an estimated 2 matches for "read_commands".
2018 May 24
3
[PATCH] gpu: Consistently use octal not symbolic permissions
...inydrm/mipi-dbi.c
@@ -1055,10 +1055,10 @@ int mipi_dbi_debugfs_init(struct drm_minor *minor)
{
struct tinydrm_device *tdev = minor->dev->dev_private;
struct mipi_dbi *mipi = mipi_dbi_from_tinydrm(tdev);
- umode_t mode = S_IFREG | S_IWUSR;
+ umode_t mode = S_IFREG | 0200;
if (mipi->read_commands)
- mode |= S_IRUGO;
+ mode |= 0444;
debugfs_create_file("command", mode, minor->debugfs_root, mipi,
&mipi_dbi_debugfs_command_fops);
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index 5d8688e522d1..90843d7d10a8 100644
--- a/drivers/gpu/drm/...
2018 May 25
0
[PATCH] gpu: Consistently use octal not symbolic permissions
...@ int mipi_dbi_debugfs_init(struct drm_minor *minor)
> {
> struct tinydrm_device *tdev = minor->dev->dev_private;
> struct mipi_dbi *mipi = mipi_dbi_from_tinydrm(tdev);
> - umode_t mode = S_IFREG | S_IWUSR;
> + umode_t mode = S_IFREG | 0200;
>
> if (mipi->read_commands)
> - mode |= S_IRUGO;
> + mode |= 0444;
> debugfs_create_file("command", mode, minor->debugfs_root, mipi,
> &mipi_dbi_debugfs_command_fops);
>
> diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
> index 5d8688e522d1..9084...