Received: by 10.223.164.202 with SMTP id h10csp2044087wrb; Thu, 16 Nov 2017 08:29:09 -0800 (PST) X-Google-Smtp-Source: AGs4zMYUAi5re3SGRj3Xf+lNQSkBaSl5uUjBIJEICtKStUuDpFb1bGrzR4+kNxm/EMQ/ToRG4H26 X-Received: by 10.84.251.152 with SMTP id w24mr2200962pll.88.1510849748903; Thu, 16 Nov 2017 08:29:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510849748; cv=none; d=google.com; s=arc-20160816; b=b322dGWcQPsu6ndNTEEdRU1MxNyfm6FtliERLGnFSl7Re4xqFApSv/kAIwDB1u5Urp 4WiPXk8H8Sin5bqexn4bYgN1VtxRhuULcEu4YNnOXlMwvKrgnnIal/14BBXiJeYe/lu3 Jo1j+pzoUX9wjAf3xBDK/BnFT+22+aOifY0RTgqEEKJsX/XLggTE0UUonHHPZ1iQX/Hb uwlD7+pkVeOK5xdgw1Jig6tXXjQ3g3dVz/x2y4s8sMjGJA3QKpk6nEeGisDL2YjT0ndz AcQvBPLmjuH7yrloxQ4jTDzAl6Ndzjk8scEL7h+L41qfafzitUoXgzDxxeg3++/N+mv3 rV9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=PKl6ssDONbNS+IN+Fe1NY3oJJXIB1r9tbW/Q79VMTR4=; b=APcsGY1SHqYJhLdD7h60LXHtgFrGitlYZOp3OUge/OtXZB6Gl4hCIqti+tQ6JHkzJV sDCt3/6hKJqA3D9+IZMubkuRFjSgBTVCJSM2V4nayIKfPsvcR6RCg0utRN0Ag18LwA78 mDtg8u8c9mmihtWQydkLy2meCBe4GiLcEGiA+HpsTf9aPMWDSemPGMHcSi0Y7fYO3jZ+ e0SMS6MtJV7neTSCcFfIpbkwgrNGs85J8Sn+19adp35H4VJidFUmS0EKPsOwlUnWL62i FLtrEjtUawyNlE7pTmmIRWNocuToO1/5NbtdnHNEPJUQaKRG4sJ8JEECgnOBFu7XoHEl WsHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m37si1122253pla.169.2017.11.16.08.28.56; Thu, 16 Nov 2017 08:29:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935235AbdKPN7T (ORCPT + 91 others); Thu, 16 Nov 2017 08:59:19 -0500 Received: from mga04.intel.com ([192.55.52.120]:25908 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934264AbdKPN6Z (ORCPT ); Thu, 16 Nov 2017 08:58:25 -0500 Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Nov 2017 02:14:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,402,1505804400"; d="scan'208";a="176875113" Received: from skchakra-desk.iind.intel.com ([10.66.254.85]) by fmsmga006.fm.intel.com with ESMTP; 16 Nov 2017 02:14:56 -0800 From: Souvik Kumar Chakravarty To: platform-driver-x86@vger.kernel.org Cc: dvhart@infradead.org, andy@infradead.org, linux-kernel@vger.kernel.org, rajneesh.bhardwaj@intel.com, Souvik Kumar Chakravarty Subject: [PATCH v1 4/5] platform/x86: intel_telemetry: Remove redundancies Date: Thu, 16 Nov 2017 15:48:16 +0530 Message-Id: <1510827497-25188-5-git-send-email-souvik.k.chakravarty@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510827497-25188-1-git-send-email-souvik.k.chakravarty@intel.com> References: <1510827497-25188-1-git-send-email-souvik.k.chakravarty@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch removes unnecessary header files and newlines. It also fixes some alignment issues. Signed-off-by: Souvik Kumar Chakravarty --- drivers/platform/x86/intel_telemetry_debugfs.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/platform/x86/intel_telemetry_debugfs.c b/drivers/platform/x86/intel_telemetry_debugfs.c index 60596a1..2a960f6 100644 --- a/drivers/platform/x86/intel_telemetry_debugfs.c +++ b/drivers/platform/x86/intel_telemetry_debugfs.c @@ -23,7 +23,6 @@ */ #include #include -#include #include #include #include @@ -32,11 +31,10 @@ #include #include #include -#include #include -#define DRIVER_NAME "telemetry_soc_debugfs" -#define DRIVER_VERSION "1.0.0" +#define DRIVER_NAME "telemetry_soc_debugfs" +#define DRIVER_VERSION "1.0.0" /* ApolloLake SoC Event-IDs */ #define TELEM_APL_PSS_PSTATES_ID 0x2802 @@ -252,7 +250,6 @@ static struct telem_ioss_pg_info telem_apl_ioss_pg_data[] = { {"PRTC", 25}, }; - struct telemetry_debugfs_conf { struct telemetry_susp_stats suspend_stats; struct dentry *telemetry_dbg_dir; @@ -387,7 +384,6 @@ static int telem_pss_states_show(struct seq_file *s, void *unused) TELEM_APL_MASK_PCS_STATE; } - TELEM_CHECK_AND_PARSE_EVTS(conf->pss_idle_id, conf->pss_idle_evts - 1, pss_idle, evtlog[index].telem_evtlog, @@ -407,7 +403,6 @@ static int telem_pss_states_show(struct seq_file *s, void *unused) conf->pcs_s0ix_blkd_data, TELEM_MASK_BYTE); - TELEM_CHECK_AND_PARSE_EVTS(conf->pss_wakeup_id, conf->pss_wakeup_evts, pss_s0ix_wakeup, @@ -500,7 +495,6 @@ static const struct file_operations telem_pss_ops = { .release = single_release, }; - static int telem_ioss_states_show(struct seq_file *s, void *unused) { struct telemetry_evtlog evtlog[TELEM_MAX_OS_ALLOCATED_EVENTS]; @@ -774,7 +768,6 @@ static const struct file_operations telem_pss_trc_verb_ops = { .release = single_release, }; - static int telem_ioss_trc_verb_show(struct seq_file *s, void *unused) { u32 verbosity; -- 2.7.4 From 1584268690118731418@xxx Thu Nov 16 23:52:40 +0000 2017 X-GM-THRID: 1584096400353009036 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread