]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Staging: atomisp - octal permissions, style fix
authorDerek Robson <robsonde@gmail.com>
Mon, 27 Mar 2017 15:14:23 +0000 (16:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Mar 2017 07:04:50 +0000 (09:04 +0200)
Changed permissions to octal style
Found using checkpatch

Signed-off-by: Derek Robson <robsonde@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/pci/atomisp2/atomisp_drvfs.c
drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm.c

index fcfe8d7190b08a14ddfac4a2b5d5b79344f868ee..1ae2358de8d4c769aa6a413493ec37229a842f24 100644 (file)
@@ -163,12 +163,9 @@ static ssize_t iunit_dbgopt_store(struct device_driver *drv, const char *buf,
 }
 
 static struct driver_attribute iunit_drvfs_attrs[] = {
-       __ATTR(dbglvl, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH, iunit_dbglvl_show,
-               iunit_dbglvl_store),
-       __ATTR(dbgfun, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH, iunit_dbgfun_show,
-               iunit_dbgfun_store),
-       __ATTR(dbgopt, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH, iunit_dbgopt_show,
-               iunit_dbgopt_store),
+       __ATTR(dbglvl, 0644, iunit_dbglvl_show, iunit_dbglvl_store),
+       __ATTR(dbgfun, 0644, iunit_dbgfun_show, iunit_dbgfun_store),
+       __ATTR(dbgopt, 0644, iunit_dbgopt_show, iunit_dbgopt_store),
 };
 
 static int iunit_drvfs_create_files(struct pci_driver *drv)
index 1f07c7a8c8ef74cb4fc08fab87d9b0be321359e1..151abf0b70b741664a86c890b2cc56011b97e08a 100644 (file)
@@ -160,10 +160,10 @@ static ssize_t dynamic_pool_show(struct device *dev,
        return ret;
 };
 
-static DEVICE_ATTR(active_bo, S_IRUGO, active_bo_show, NULL);
-static DEVICE_ATTR(free_bo, S_IRUGO, free_bo_show, NULL);
-static DEVICE_ATTR(reserved_pool, S_IRUGO, reserved_pool_show, NULL);
-static DEVICE_ATTR(dynamic_pool, S_IRUGO, dynamic_pool_show, NULL);
+static DEVICE_ATTR(active_bo, 0444, active_bo_show, NULL);
+static DEVICE_ATTR(free_bo, 0444, free_bo_show, NULL);
+static DEVICE_ATTR(reserved_pool, 0444, reserved_pool_show, NULL);
+static DEVICE_ATTR(dynamic_pool, 0444, dynamic_pool_show, NULL);
 
 static struct attribute *sysfs_attrs_ctrl[] = {
        &dev_attr_active_bo.attr,