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@xxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-api" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html