platform/x86: intel_pmc_ipc: Use octal permissions in sysfs attributes
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 22 Jan 2020 16:46:17 +0000 (19:46 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 22 Jan 2020 16:52:27 +0000 (18:52 +0200)
commit1e3872ccda65b6a2ae81ed19f746115d6fbfe562
tree02130468e7d577b2f7811e542dd841c9f45dbf82
parent63d91d815ddd7ccd7ea8ec61f8f313d00c05eecf
platform/x86: intel_pmc_ipc: Use octal permissions in sysfs attributes

This is the current preferred way so replace the S_IWUSR with the
corresponding octal value. While there move the attributes to follow
directly their store functions.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_pmc_ipc.c