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

Commit 4e36dad6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm: read boolan flag to enable static splash"

parents f9644839 318c0054
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
#include "drm_internal.h"
#include "drm_splash.h"

static bool drm_bootsplash_enabled = true;
static bool drm_bootsplash_enabled;
module_param_named(bootsplash_enabled, drm_bootsplash_enabled, bool, 0664);

static void drm_bootsplash_client_unregister(struct drm_client_dev *client);
@@ -35,6 +35,12 @@ struct drm_bootsplash {
	bool stop;
};

static void is_drm_bootsplash_enabled(struct device *dev)
{
	drm_bootsplash_enabled = of_property_read_bool(dev->of_node,
		"qcom,sde-drm-fb-splash-logo-enabled");
}

static void drm_bootsplash_buffer_delete(struct drm_bootsplash *splash)
{
	if (!IS_ERR_OR_NULL(splash->buffer))
@@ -296,6 +302,8 @@ void drm_bootsplash_client_register(struct drm_device *dev)
	struct drm_bootsplash *splash;
	int ret;

	is_drm_bootsplash_enabled(dev->dev);

	if (!drm_bootsplash_enabled)
		return;