summaryrefslogtreecommitdiffstats
path: root/drivers/fpga/dfl-fme-perf.c
diff options
context:
space:
mode:
authorXu Yilun <yilun.xu@intel.com>2020-08-10 04:41:10 +0200
committerMoritz Fischer <mdf@kernel.org>2020-08-20 06:05:47 +0200
commit8a5de2de0339cdb7bd269140f857b62ba7222759 (patch)
tree06b3f4b6cb90fcb9fe2b1da91c967abd53924443 /drivers/fpga/dfl-fme-perf.c
parentMAINTAINERS: Add Tom Rix as fpga reviewer (diff)
downloadlinux-8a5de2de0339cdb7bd269140f857b62ba7222759.tar.xz
linux-8a5de2de0339cdb7bd269140f857b62ba7222759.zip
fpga: dfl: change data type of feature id to u16
The feature id is stored in a 12 bit field in DFH. So a u16 variable is enough for feature id. This patch changes all feature id related places to fit u16. Signed-off-by: Xu Yilun <yilun.xu@intel.com> Reviewed-by: Tom Rix <trix@redhat.com> Acked-by: Wu Hao <hao.wu@intel.com> Signed-off-by: Moritz Fischer <mdf@kernel.org>
Diffstat (limited to 'drivers/fpga/dfl-fme-perf.c')
-rw-r--r--drivers/fpga/dfl-fme-perf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fpga/dfl-fme-perf.c b/drivers/fpga/dfl-fme-perf.c
index 6ce1ed222ea4..531266287eee 100644
--- a/drivers/fpga/dfl-fme-perf.c
+++ b/drivers/fpga/dfl-fme-perf.c
@@ -148,7 +148,7 @@ struct fme_perf_priv {
struct device *dev;
void __iomem *ioaddr;
struct pmu pmu;
- u64 id;
+ u16 id;
u32 fab_users;
u32 fab_port_id;