cxl/core: Move target_list out of base decoder attributes

In preparation for introducing endpoint decoder objects, move the
target_list attribute out of the common set since it has no meaning for
endpoint decoders.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Ben Widawsky <ben.widawsky@intel.com>
Link: https://lore.kernel.org/r/164298430100.3018233.4715072508880290970.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
Dan Williams 2022-01-23 16:31:41 -08:00
parent 8dd2bc0f8e
commit 8aea0ef19f
1 changed files with 2 additions and 1 deletions

View File

@ -184,7 +184,6 @@ static struct attribute *cxl_decoder_base_attrs[] = {
&dev_attr_start.attr, &dev_attr_start.attr,
&dev_attr_size.attr, &dev_attr_size.attr,
&dev_attr_locked.attr, &dev_attr_locked.attr,
&dev_attr_target_list.attr,
NULL, NULL,
}; };
@ -197,6 +196,7 @@ static struct attribute *cxl_decoder_root_attrs[] = {
&dev_attr_cap_ram.attr, &dev_attr_cap_ram.attr,
&dev_attr_cap_type2.attr, &dev_attr_cap_type2.attr,
&dev_attr_cap_type3.attr, &dev_attr_cap_type3.attr,
&dev_attr_target_list.attr,
NULL, NULL,
}; };
@ -213,6 +213,7 @@ static const struct attribute_group *cxl_decoder_root_attribute_groups[] = {
static struct attribute *cxl_decoder_switch_attrs[] = { static struct attribute *cxl_decoder_switch_attrs[] = {
&dev_attr_target_type.attr, &dev_attr_target_type.attr,
&dev_attr_target_list.attr,
NULL, NULL,
}; };