]> git.baikalelectronics.ru Git - kernel.git/commit
intel_pmc_core: Convert to DEFINE_DEBUGFS_ATTRIBUTE
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 4 Jul 2016 12:39:48 +0000 (15:39 +0300)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 6 Jul 2016 20:23:53 +0000 (13:23 -0700)
commitb8bd00f32d6f477fb9e3a5c4cf541a068c7bc3d0
tree93997485c61090af641180b2494ca9f69b9727f7
parentbbcf80b2e6137c6cd8b60724aac6add8fc5f4cf3
intel_pmc_core: Convert to DEFINE_DEBUGFS_ATTRIBUTE

Refactor the code to use the recently introduced
DEFINE_DEBUGFS_ATTRIBUTE() macro to eliminate boilerplate code.
Make the absence of DEBUG_FS a non-fatal error.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-and-tested-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/intel_pmc_core.c
drivers/platform/x86/intel_pmc_core.h