soc/tegra: fuse: Update the SoC revision attribute to display a name
authorJon Hunter <jonathanh@nvidia.com>
Fri, 17 Apr 2020 12:40:46 +0000 (13:40 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 21 Apr 2020 22:08:05 +0000 (00:08 +0200)
commit37558ac85c197a5ff776b7b2f53046877f2bd4ee
treea2986e7f364a37366687c67d4eab3fba2cea1468
parentd08a4095abd8174e13c23c733584da9d0de556e7
soc/tegra: fuse: Update the SoC revision attribute to display a name

Currently the SoC revision attribute for Tegra devices displays the
value of the enum associated with a particular revision. This is not
very useful because to obtain the actual revision you need to
use the tegra_revision enumeration to translate the value.

It is more meaningful to display a name for the revision, such as
'A01', than the enumarated value and therefore, update the revision
attribute to display a name. This change does alter the ABI, which
is unfortunate, but this is more meaningful and maintable.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/fuse/fuse-tegra.c