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)
commitdf2294fb64285d2d793cf50c682ac4bfddf56c4c
tree93997485c61090af641180b2494ca9f69b9727f7
parent696789343b56f3efa26da29eb5b442b673bd83c8
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