diff options
author | Xu Yilun <yilun.xu@intel.com> | 2021-01-06 20:37:09 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-07 15:21:27 +0100 |
commit | e08b9e6d87cca2bd8f427d109d22970906aaf6f8 (patch) | |
tree | 799e06d886da0a408905758db310414907542156 /drivers/edac/edac_mc.c | |
parent | fa41d10589be124404492b5181a818a509d8cb1c (diff) | |
download | linux-e08b9e6d87cca2bd8f427d109d22970906aaf6f8.tar.gz linux-e08b9e6d87cca2bd8f427d109d22970906aaf6f8.tar.bz2 linux-e08b9e6d87cca2bd8f427d109d22970906aaf6f8.zip |
fpga: dfl: fix the definitions of type & feature_id for dfl devices
The value of the field dfl_device.type comes from the 12 bits register
field DFH_ID according to DFL spec. So this patch changes the definition
of the type field to u16.
Also it is not necessary to illustrate the valid bits of the type field
in comments. Instead we should explicitly define the possible values in
the enumeration type for it, because they are shared by hardware spec.
We should not let the compiler decide these values.
Similar changes are also applied to dfl_device.feature_id.
This patch also fixed the MODALIAS format according to the changes
above.
Reviewed-by: Tom Rix <trix@redhat.com>
Signed-off-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Link: https://lore.kernel.org/r/20210107043714.991646-4-mdf@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/edac/edac_mc.c')
0 files changed, 0 insertions, 0 deletions