Commit 286f9505 authored by Anshuman Khandual's avatar Anshuman Khandual Committed by Suzuki K Poulose

coresight: Drop unused 'none' enum value for each component

CORESIGHT_DEV_TYPE_NONE/CORESIGHT_DEV_SUBTYPE_XXXX_NONE values are not used
any where. Actual enumeration can start from 0. Just drop these unused enum
values.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: coresight@lists.linaro.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: default avatarAnshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/1645005118-10561-1-git-send-email-anshuman.khandual@arm.comSigned-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
parent ec70b05d
...@@ -1278,9 +1278,6 @@ static struct attribute *coresight_source_attrs[] = { ...@@ -1278,9 +1278,6 @@ static struct attribute *coresight_source_attrs[] = {
ATTRIBUTE_GROUPS(coresight_source); ATTRIBUTE_GROUPS(coresight_source);
static struct device_type coresight_dev_type[] = { static struct device_type coresight_dev_type[] = {
{
.name = "none",
},
{ {
.name = "sink", .name = "sink",
.groups = coresight_sink_groups, .groups = coresight_sink_groups,
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
extern struct bus_type coresight_bustype; extern struct bus_type coresight_bustype;
enum coresight_dev_type { enum coresight_dev_type {
CORESIGHT_DEV_TYPE_NONE,
CORESIGHT_DEV_TYPE_SINK, CORESIGHT_DEV_TYPE_SINK,
CORESIGHT_DEV_TYPE_LINK, CORESIGHT_DEV_TYPE_LINK,
CORESIGHT_DEV_TYPE_LINKSINK, CORESIGHT_DEV_TYPE_LINKSINK,
...@@ -46,7 +45,6 @@ enum coresight_dev_type { ...@@ -46,7 +45,6 @@ enum coresight_dev_type {
}; };
enum coresight_dev_subtype_sink { enum coresight_dev_subtype_sink {
CORESIGHT_DEV_SUBTYPE_SINK_NONE,
CORESIGHT_DEV_SUBTYPE_SINK_PORT, CORESIGHT_DEV_SUBTYPE_SINK_PORT,
CORESIGHT_DEV_SUBTYPE_SINK_BUFFER, CORESIGHT_DEV_SUBTYPE_SINK_BUFFER,
CORESIGHT_DEV_SUBTYPE_SINK_SYSMEM, CORESIGHT_DEV_SUBTYPE_SINK_SYSMEM,
...@@ -54,21 +52,18 @@ enum coresight_dev_subtype_sink { ...@@ -54,21 +52,18 @@ enum coresight_dev_subtype_sink {
}; };
enum coresight_dev_subtype_link { enum coresight_dev_subtype_link {
CORESIGHT_DEV_SUBTYPE_LINK_NONE,
CORESIGHT_DEV_SUBTYPE_LINK_MERG, CORESIGHT_DEV_SUBTYPE_LINK_MERG,
CORESIGHT_DEV_SUBTYPE_LINK_SPLIT, CORESIGHT_DEV_SUBTYPE_LINK_SPLIT,
CORESIGHT_DEV_SUBTYPE_LINK_FIFO, CORESIGHT_DEV_SUBTYPE_LINK_FIFO,
}; };
enum coresight_dev_subtype_source { enum coresight_dev_subtype_source {
CORESIGHT_DEV_SUBTYPE_SOURCE_NONE,
CORESIGHT_DEV_SUBTYPE_SOURCE_PROC, CORESIGHT_DEV_SUBTYPE_SOURCE_PROC,
CORESIGHT_DEV_SUBTYPE_SOURCE_BUS, CORESIGHT_DEV_SUBTYPE_SOURCE_BUS,
CORESIGHT_DEV_SUBTYPE_SOURCE_SOFTWARE, CORESIGHT_DEV_SUBTYPE_SOURCE_SOFTWARE,
}; };
enum coresight_dev_subtype_helper { enum coresight_dev_subtype_helper {
CORESIGHT_DEV_SUBTYPE_HELPER_NONE,
CORESIGHT_DEV_SUBTYPE_HELPER_CATU, CORESIGHT_DEV_SUBTYPE_HELPER_CATU,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment