mailbox: PCC: Move the MAX_PCC_SUBSPACES definition to header file
authorGeorge Cherian <george.cherian@cavium.com>
Wed, 11 Oct 2017 08:54:57 +0000 (08:54 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 8 Nov 2017 23:39:53 +0000 (00:39 +0100)
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 <george.cherian@cavium.com>
Reviewed-by: Prashanth Prakash <pprakash@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/mailbox/pcc.c
include/acpi/pcc.h

index 9b7005e1345e1a2b0f76ddc8e429a070d4c65790..e5a69679cfa2a0ca4d60b4e18788db21a849ec66 100644 (file)
@@ -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;
index 8caa79c617035e60a41ee850150d2b472f35df5a..cd6ef45e614ea8131b8c0e1c50518d67b36a0d4e 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/mailbox_controller.h>
 #include <linux/mailbox_client.h>
 
+#define MAX_PCC_SUBSPACES      256
 #ifdef CONFIG_PCC
 extern struct mbox_chan *pcc_mbox_request_channel(struct mbox_client *cl,
                                                  int subspace_id);