mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
coresight: Add explicit member initializers to coresight_dev_type
These could potentially become wrong silently if the enum is changed, so explicitly initialize them. Signed-off-by: James Clark <james.clark@arm.com> Link: https://lore.kernel.org/r/20240129154050.569566-10-james.clark@arm.com Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
This commit is contained in:
parent
053ad9ad1d
commit
812265e26e
|
|
@ -378,22 +378,22 @@ static struct attribute *coresight_source_attrs[] = {
|
|||
ATTRIBUTE_GROUPS(coresight_source);
|
||||
|
||||
struct device_type coresight_dev_type[] = {
|
||||
{
|
||||
[CORESIGHT_DEV_TYPE_SINK] = {
|
||||
.name = "sink",
|
||||
.groups = coresight_sink_groups,
|
||||
},
|
||||
{
|
||||
[CORESIGHT_DEV_TYPE_LINK] = {
|
||||
.name = "link",
|
||||
},
|
||||
{
|
||||
[CORESIGHT_DEV_TYPE_LINKSINK] = {
|
||||
.name = "linksink",
|
||||
.groups = coresight_sink_groups,
|
||||
},
|
||||
{
|
||||
[CORESIGHT_DEV_TYPE_SOURCE] = {
|
||||
.name = "source",
|
||||
.groups = coresight_source_groups,
|
||||
},
|
||||
{
|
||||
[CORESIGHT_DEV_TYPE_HELPER] = {
|
||||
.name = "helper",
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user