Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751602AbdITFZ0 (ORCPT ); Wed, 20 Sep 2017 01:25:26 -0400 Received: from mail-sn1nam01on0050.outbound.protection.outlook.com ([104.47.32.50]:43018 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750924AbdITFZW (ORCPT ); Wed, 20 Sep 2017 01:25:22 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=George.Cherian@cavium.com; From: George Cherian To: devel@acpica.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Cc: lv.zheng@intel.com, robert.moore@intel.com, jassisinghbrar@gmail.com, lenb@kernel.org, rjw@rjwysocki.net, pprakash@codeaurora.org, George Cherian Subject: [PATCH v4 1/2] mailbox: PCC: Move the MAX_PCC_SUBSPACES definition to header file Date: Wed, 20 Sep 2017 05:24:46 +0000 Message-Id: <1505885087-5112-2-git-send-email-george.cherian@cavium.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1505885087-5112-1-git-send-email-george.cherian@cavium.com> References: <1505885087-5112-1-git-send-email-george.cherian@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0112.INDPRD01.PROD.OUTLOOK.COM (10.174.208.28) To CY1PR0701MB1710.namprd07.prod.outlook.com (10.163.21.12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a777cc91-4fb1-4726-966f-08d4ffe7fccf X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:CY1PR0701MB1710; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB1710;3:F4O82sUSojk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gZWrJmot+xh682usD9VEivvFsIh/RyNRMXtuUSBQmorrYSyU8TsyDpajThOVqdjtkQpwBrK7w8AF6XCgA9MbFJLIpEOYsj4MREVi/yqzghY6F6tsFt0IGjKlGaq3iipjtnB3Z6fWApJvLaE1wRx1pZQAwTuOn9kAqJnDB87QZP6LlEvozE5rKWvrEHZLpoXqImuD+MZDFV3nA8Y+EXS/d3TF0xPoAHIC1hcTGaTwuXwCK90K/MCsh2cfsEcljBqrKBWTqwaPosd8Yer/xENypaTtt5dK4Vrgtvf1gFZh+MmHHiS/jGWq/288cNsJuGsRBHI7bV;4:R9D0EdoJfjBn2eIIDF4sZaxW2F5qz1EnuLv0E7mkxTvRB8UumG/yl/kXwwDBiNJHzDEke+lge75oHYRPRmOe4z/OZlOmbKAO5n6wtr/0Wijrqz1iMokzL3VAtbQd93SHhVdTIXVgyKgYGwCYqXdHvh9UONNYdIdX38iVZbpT3iu+q1wZbpr0mSN1dkUAwFscdToOaF724Q0UmARrEyY6We6VfV6Nac1Ae38wmNml4pI9yCKSVXJE+F8DKuZChtm2 X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR0701MB1710;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR0701MB1710; X-Forefront-PRVS: 04362AC73B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(346002)(376002)(199003)(189002)(5009440100003)(36756003)(50986999)(3846002)(6116002)(86362001)(76176999)(101416001)(48376002)(189998001)(47776003)(66066001)(50466002)(33646002)(53416004)(106356001)(50226002)(68736007)(105586002)(25786009)(97736004)(478600001)(72206003)(7736002)(6506006)(8676002)(6486002)(4326008)(305945005)(39060400002)(5003940100001)(53936002)(8936002)(81166006)(81156014)(6666003)(107886003)(16526017)(316002)(2950100002)(2906002)(5660300001)(6512007)(16586007)(69596002)(15650500001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0701MB1710;H:ubuntu.caveonetworks.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR0701MB1710;23:y6M6Mdb9skHAWXLlhmlqpgNiCJMYJAMcY6kymIM?= =?us-ascii?Q?t/yj7n0rw5+FsG3jZa+EyP3QBkh0M2kr9vrCURurPp1DJnRim6t1IAZ0NZvo?= =?us-ascii?Q?Li6y9q351XWCDolJx484dhCZBEQJgp41USRfw4hK6FBkJve6xiatrsiexTKc?= =?us-ascii?Q?Y6OafEMOZXc2E22HxlNSeF8IlT6pwcdNVjctvsDCXxlkW7NUnAtbqWLNI3lT?= =?us-ascii?Q?XMuVln5RTNsem0C45eaEY92GoBvshNnMzTOVoH/P8knF+2AOwynfSdzMv2RS?= =?us-ascii?Q?gcb9hst0ONf1QegPMh9qieZB8ezuGZdR9J3j5n/7bTmJqMbSsNI/qsFqfBGu?= =?us-ascii?Q?2U1Z7PDWHSByiIuXEiVMRgAnxz58Lq4JNjcUaUg9vIo0G7kGgI7j6zjhIcJo?= =?us-ascii?Q?n15dzvYpZyIhlIOQNUrFd6pXlyBT1LP6WsS4IYv0dPPli5lVpICBTj/R6Cgy?= =?us-ascii?Q?N8VxmQpj3oOgzUXeRwliQM/+W80SiMZNfTC+KqnR34A7GWH49db0P4gQan/s?= =?us-ascii?Q?HXhLTDH1GyJ//+UJxxzK54ILHh1bMhdHeMi6N2tBpPFKg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ALAMaa2U3hIPfr1tnTNZZqv5vdW7ugHZU8slQg0qpoXR7hpu3uUz8kaUvQTDGj1ZyP8SN/SbErp3o8snJqbg6HCHdu9acfeeG/QFHoChDg==;5:KNBWQS8AMZj7whoMWKuWVaM1Pv6ud+Gxu1Bhxk+nRzUvduqVD3/Td7v7VW75h0z/tLOjzoFPUK6+g8qbv8DPimrDEN8l+WAvZLTPcgVFRIML2itoTO3pOPif3riAwvawcrnlJillzNqg+Z+uwP5f84sQW55ANpWqf1EyFovBk24=;24:YTf/51+ZW3h5yOJIUaYDgsFJnhxuiXlDwyOd+uvgeishPBtmJXs4tMsYJsKuzMBRVcPgXHprYYQyloTmLhqRzdOkUw4f/YTYQOB6RAmiays=;7:BpnaEDX8rULf32nzz8Eitf9j7F+qXfTeqeBzb1XhhAIbqAi1MCYj6NwAfEERBkpr9o+eAMpqjCZm1tUUsIc9FVFHJfhq2vy73yT22VQpDMsv4xYzEBhBs9WeOV1LvSOPlj1sR8qs0zPYUUl8Bsmqk9dao5lmiIDuPn7cE+NHhJqBVBFCr5eKjzI66LxM4g4K6+/LH2KucfsC+b3CbQTKwhFIs3cHC2Tiid6SznK/BNY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2017 05:25:17.8041 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1710 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 983 Lines: 35 Move the MAX_PCC_SUBSPACES definition to acpi/pcc.h file. In preparation to add subspace id support for cppc_acpi driver. Signed-off-by: George Cherian --- drivers/mailbox/pcc.c | 1 - include/acpi/pcc.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/pcc.c b/drivers/mailbox/pcc.c index 9b7005e..e5a6967 100644 --- a/drivers/mailbox/pcc.c +++ b/drivers/mailbox/pcc.c @@ -69,7 +69,6 @@ #include "mailbox.h" -#define MAX_PCC_SUBSPACES 256 #define MBOX_IRQ_NAME "pcc-mbox" static struct mbox_chan *pcc_mbox_channels; diff --git a/include/acpi/pcc.h b/include/acpi/pcc.h index 8caa79c..cd6ef45 100644 --- a/include/acpi/pcc.h +++ b/include/acpi/pcc.h @@ -13,6 +13,7 @@ #include #include +#define MAX_PCC_SUBSPACES 256 #ifdef CONFIG_PCC extern struct mbox_chan *pcc_mbox_request_channel(struct mbox_client *cl, int subspace_id); -- 2.1.4