> > So, if there is no objections (taking into consideration minors you > mentioned) I think the patch can be applied. > I think we still need to address a couple of minor issues and might need a version 2 of this patch. In case we want to apply this one here is one patch that can applied on top of this one. Please see the proposed changes below. >From 42d899968c8c07f103390fcaebdaf2ba54cb3363 Mon Sep 17 00:00:00 2001 From: Rajneesh Bhardwaj <rajneesh.bhardwaj@xxxxxxxxx> Date: Mon, 4 Jul 2016 16:22:31 +0530 Subject: [PATCH] platform/x86/intel_pmc_core: Enhances debugfs attribute patch Refines "convert to DEFINE_DEBUGFS_ATTRIBUTE" patch for PMC Core. This change can be applied over the Convert to DEFINE_DEBUGFS_ATTRIBUTE patch sent by Andy Shevchenko to the platform drivers mailing list. This helps preserve usage of seq_file.h in the pmc_core driver. This also caters to some minor cosmetic changes suggested during the code review process. Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@xxxxxxxxx> --- drivers/platform/x86/intel_pmc_core.c | 4 +++- drivers/platform/x86/intel_pmc_core.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/intel_pmc_core.c b/drivers/platform/x86/intel_pmc_core.c index c29f59b..18af49f 100644 --- a/drivers/platform/x86/intel_pmc_core.c +++ b/drivers/platform/x86/intel_pmc_core.c @@ -23,6 +23,7 @@ #include <linux/init.h> #include <linux/io.h> #include <linux/pci.h> +#include <linux/seq_file.h> #include <asm/cpu_device_id.h> #include <asm/intel-family.h> @@ -88,7 +89,8 @@ static int pmc_core_dev_state_get(void *data, u64 *val) return 0; } -DEFINE_DEBUGFS_ATTRIBUTE(pmc_core_dev_state, pmc_core_dev_state_get, NULL, "%llu"); +DEFINE_DEBUGFS_ATTRIBUTE(pmc_core_dev_state, pmc_core_dev_state_get, NULL, + "%llu\n"); static void pmc_core_dbgfs_unregister(struct pmc_dev *pmcdev) { diff --git a/drivers/platform/x86/intel_pmc_core.h b/drivers/platform/x86/intel_pmc_core.h index 9689b92..6265480 100644 --- a/drivers/platform/x86/intel_pmc_core.h +++ b/drivers/platform/x86/intel_pmc_core.h @@ -29,7 +29,6 @@ #define SPT_PMC_MMIO_REG_LEN 0x100 #define SPT_PMC_SLP_S0_RES_COUNTER_STEP 0x64 -struct dentry; /** * struct pmc_dev - pmc device structure -- 1.9.1 > -- > > Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> > Intel Finland Oy -- Best Regards, Rajneesh -- To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html