Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75185c92 authored by Keith Packard's avatar Keith Packard Committed by Dave Airlie
Browse files

drm: add newlines to text sysfs files



The contents of various simple text files in sysfs should end with
a newline to make them easier to read from the console.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 9863871b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ static ssize_t status_show(struct device *device,
	enum drm_connector_status status;

	status = connector->funcs->detect(connector);
	return snprintf(buf, PAGE_SIZE, "%s",
	return snprintf(buf, PAGE_SIZE, "%s\n",
			drm_get_connector_status_name(status));
}

@@ -166,7 +166,7 @@ static ssize_t dpms_show(struct device *device,
	if (ret)
		return 0;

	return snprintf(buf, PAGE_SIZE, "%s",
	return snprintf(buf, PAGE_SIZE, "%s\n",
			drm_get_dpms_name((int)dpms_status));
}

@@ -176,7 +176,7 @@ static ssize_t enabled_show(struct device *device,
{
	struct drm_connector *connector = to_drm_connector(device);

	return snprintf(buf, PAGE_SIZE, connector->encoder ? "enabled" :
	return snprintf(buf, PAGE_SIZE, "%s\n", connector->encoder ? "enabled" :
			"disabled");
}