]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: most: hdm-usb: fix symbolic permissions warning
authorSebastian Haas <sehaas@deebas.com>
Wed, 25 Jan 2017 22:47:43 +0000 (23:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jan 2017 08:40:56 +0000 (09:40 +0100)
Replace symbolic permissions with their octect representation to fix
checkpatch warnings.

Signed-off-by: Sebastian Haas <sehaas@deebas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/hdm-usb/hdm_usb.c

index 01e3a31c68a8b57aa852f83e855ad40aa2c0dcbd..65211d1824b72f42f5bacd5e8ededb190d766de3 100644 (file)
@@ -846,15 +846,15 @@ static struct usb_device_id usbid[] = {
 
 #define MOST_DCI_RO_ATTR(_name) \
        struct most_dci_attribute most_dci_attr_##_name = \
-               __ATTR(_name, S_IRUGO, show_value, NULL)
+               __ATTR(_name, 0444, show_value, NULL)
 
 #define MOST_DCI_ATTR(_name) \
        struct most_dci_attribute most_dci_attr_##_name = \
-               __ATTR(_name, S_IRUGO | S_IWUSR, show_value, store_value)
+               __ATTR(_name, 0644, show_value, store_value)
 
 #define MOST_DCI_WO_ATTR(_name) \
        struct most_dci_attribute most_dci_attr_##_name = \
-               __ATTR(_name, S_IWUSR, NULL, store_value)
+               __ATTR(_name, 0200, NULL, store_value)
 
 /**
  * struct most_dci_attribute - to access the attributes of a dci object