firmware: arm_scmi: Add versions and identifier attributes using dev_groups
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 22 Oct 2019 09:09:01 +0000 (10:09 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 24 Dec 2019 11:35:49 +0000 (11:35 +0000)
commit4605e224db2ec4ce8f0eb4e91feba7eaf5677ba9
treeaf26d4f499b47a6e0f8f03ced8d5fce8be3c5b0c
parent9c5c463f2adf140a126c7ab52bd10012c70fdd53
firmware: arm_scmi: Add versions and identifier attributes using dev_groups

Platform drivers now have the option to have the platform core create
and remove any needed sysfs attribute files. Using the same, let's add
the scmi firmware and protocol version attributes as well as vendor and
sub-vendor identifiers to sysfs.

It helps to identify the firmware details from the sysfs entries similar
to ARM SCPI implementation.

Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/driver.c