drm: omapdrm: dss: Store the debugfs root directory in struct dss_device

As part of an effort to remove the usage of global variables in the
driver, store the debugfs root directory in the dss_device structure
instead of a global variable.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
This commit is contained in:
Laurent Pinchart
2018-02-13 14:00:31 +02:00
committed by Tomi Valkeinen
parent 798957aedb
commit 1c4b92ee00
7 changed files with 36 additions and 30 deletions

View File

@@ -780,7 +780,8 @@ static int hdmi4_bind(struct device *dev, struct device *master, void *data)
return r;
}
hdmi.debugfs = dss_debugfs_create_file("hdmi", hdmi_dump_regs, &hdmi);
hdmi.debugfs = dss_debugfs_create_file(dss, "hdmi", hdmi_dump_regs,
&hdmi);
return 0;
err: