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

Commit 69b843d9 authored by Ritesh Kumar's avatar Ritesh Kumar Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/dsi-staging: update return value to dyn clk sysfs node



While switching the dsi bit clk via sysfs node in command
mode, return value should be count of number of characters.

Change-Id: I90b3a34e2bb403257fdc8174ccbcee0e6e8ed8ef
Signed-off-by: default avatarRitesh Kumar <riteshk@codeaurora.org>
parent 3f4b4469
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4702,7 +4702,7 @@ static ssize_t sysfs_dynamic_dsi_clk_read(struct device *dev,
static ssize_t sysfs_dynamic_dsi_clk_write(struct device *dev,
	struct device_attribute *attr, const char *buf, size_t count)
{
	int rc = count;
	int rc = 0;
	int clk_rate;
	struct dsi_display *display;

@@ -4731,6 +4731,8 @@ static ssize_t sysfs_dynamic_dsi_clk_write(struct device *dev,
	rc = dsi_display_dynamic_clk_configure_cmd(display, clk_rate);
	if (rc)
		pr_err("Failed to configure dynamic clk\n");
	else
		rc = count;

	mutex_unlock(&dsi_display_clk_mutex);
	mutex_unlock(&display->display_lock);