aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Cherian <george.cherian@cavium.com>2017-10-11 04:54:57 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-11-08 18:39:53 -0500
commitc4b766c2f3fc4d847f16a3735913b7edf3136343 (patch)
tree30d0ec77865740987a95d9c01e3adb24957139cb
parent39dae59d66acd86d1de24294bd2f343fd5e7a625 (diff)
mailbox: PCC: Move the MAX_PCC_SUBSPACES definition to header file
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>
-rw-r--r--drivers/mailbox/pcc.c1
-rw-r--r--include/acpi/pcc.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mailbox/pcc.c b/drivers/mailbox/pcc.c
index 9b7005e1345e..e5a69679cfa2 100644
--- a/drivers/mailbox/pcc.c
+++ b/drivers/mailbox/pcc.c
@@ -69,7 +69,6 @@
69 69
70#include "mailbox.h" 70#include "mailbox.h"
71 71
72#define MAX_PCC_SUBSPACES 256
73#define MBOX_IRQ_NAME "pcc-mbox" 72#define MBOX_IRQ_NAME "pcc-mbox"
74 73
75static struct mbox_chan *pcc_mbox_channels; 74static struct mbox_chan *pcc_mbox_channels;
diff --git a/include/acpi/pcc.h b/include/acpi/pcc.h
index 8caa79c61703..cd6ef45e614e 100644
--- a/include/acpi/pcc.h
+++ b/include/acpi/pcc.h
@@ -13,6 +13,7 @@
13#include <linux/mailbox_controller.h> 13#include <linux/mailbox_controller.h>
14#include <linux/mailbox_client.h> 14#include <linux/mailbox_client.h>
15 15
16#define MAX_PCC_SUBSPACES 256
16#ifdef CONFIG_PCC 17#ifdef CONFIG_PCC
17extern struct mbox_chan *pcc_mbox_request_channel(struct mbox_client *cl, 18extern struct mbox_chan *pcc_mbox_request_channel(struct mbox_client *cl,
18 int subspace_id); 19 int subspace_id);