lkml.org 
[lkml]   [2018]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v4 19/24] fpga: dfl-fme-region: add compat_id support
Date
This patch adds compat_id support, configure the compat_id value
of fpga_region, then userspace could read it from the common sysfs
interface compat_id of fpga_region.

Signed-off-by: Wu Hao <hao.wu@intel.com>
---
drivers/fpga/dfl-fme-region.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/fpga/dfl-fme-region.c b/drivers/fpga/dfl-fme-region.c
index 1f5f33d..bcef98a 100644
--- a/drivers/fpga/dfl-fme-region.c
+++ b/drivers/fpga/dfl-fme-region.c
@@ -48,6 +48,7 @@ static int fme_region_probe(struct platform_device *pdev)
region->get_bridges = fme_region_get_bridges;
region->priv = pdata;
region->parent = dev;
+ region->compat_id = pdata->compat_id;
platform_set_drvdata(pdev, region);

ret = fpga_region_register(region);
--
2.7.4
\
 
 \ /
  Last update: 2018-02-13 10:39    [W:0.423 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site