aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/greybus.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2015-09-02 18:03:21 +0200
committerJohan Hovold <johan@hovoldconsulting.com>2015-09-03 09:45:32 +0200
commit1dc53922655a1f2537488a9d52aa99d111f38f66 (patch)
tree05a6bf64b3d7f7acc941751df3568460803c7598 /drivers/staging/greybus/greybus.h
parentgreybus: es1: fix build-time cport constraint (diff)
downloadlinux-dev-1dc53922655a1f2537488a9d52aa99d111f38f66.tar.xz
linux-dev-1dc53922655a1f2537488a9d52aa99d111f38f66.zip
greybus: fix cport-id defines
The CPORT_ID_MAX define has been used by host drivers as a device limit, but also for sanity checks when parsing manifests. Now that it's only used for sanity checks we can increase it to the specification maximum (4095) and get rid of the config-option that could be used to override the previous limit (128). Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/staging/greybus/greybus.h')
-rw-r--r--drivers/staging/greybus/greybus.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/staging/greybus/greybus.h b/drivers/staging/greybus/greybus.h
index 27a772421529..8e215f870c1d 100644
--- a/drivers/staging/greybus/greybus.h
+++ b/drivers/staging/greybus/greybus.h
@@ -53,15 +53,9 @@
.match_flags = GREYBUS_DEVICE_ID_MATCH_SERIAL, \
.serial_number = (s),
-/* XXX I couldn't get my Kconfig file to be noticed for out-of-tree build */
-#ifndef CONFIG_CPORT_ID_MAX
-#define CONFIG_CPORT_ID_MAX 128
-#endif /* !CONFIG_CPORT_ID_MAX */
-
-/* Maximum number of CPorts usable by a host device */
-/* XXX This should really be determined by the AP module manifest */
-#define CPORT_ID_MAX CONFIG_CPORT_ID_MAX
-#define CPORT_ID_BAD U16_MAX /* UniPro max id is 4095 */
+/* Maximum number of CPorts */
+#define CPORT_ID_MAX 4095 /* UniPro max id is 4095 */
+#define CPORT_ID_BAD U16_MAX
/* For SP1 hardware, we are going to "hardcode" each device to have all logical
* blocks in order to be able to address them as one unified "unit". Then