OSDN Git Service

platform/x86: intel_pmc_core: Refactor debugfs entries
authorRajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
Fri, 19 Jan 2018 08:58:20 +0000 (14:28 +0530)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 29 Jan 2018 18:44:15 +0000 (20:44 +0200)
commit750e0f570b7145870d40f07337f3356c18e0abd4
tree1bbeeb6219b68fc16f446038cfd40e95b592ec22
parent7dc5ff66c2c1d42ea55800548e0e28cc0d206c98
platform/x86: intel_pmc_core: Refactor debugfs entries

When on a platform if we can't show MPHY and PLL status, don't even bother
to create a debugfs entry as it will fail anyway. In fact unless OEM builds
a special BIOS for test, it will fail on every production system.

This will help to add future platform support where we can't support these
entries.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_pmc_core.c