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

Commit 28a41e13 authored by Jin Li's avatar Jin Li
Browse files

fb: msm_dba: fix issue in dba driver



Fix wrong return value and wrong print message in msm_dba driver.

Change-Id: I267deb62adbf6ffc09e3ce36bb2c54e7e6768f0f
Signed-off-by: default avatarJin Li <jinl@codeaurora.org>
parent 25dc0d20
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1457,14 +1457,14 @@ exit:
static int adv7533_video_on(void *client, bool on,
	struct msm_dba_video_cfg *cfg, u32 flags)
{
	int ret = -EINVAL;
	int ret = 0;
	u8 lanes;
	u8 reg_val = 0;
	struct adv7533 *pdata = adv7533_get_platform_data(client);

	if (!pdata || !cfg) {
		pr_err("%s: invalid platform data\n", __func__);
		return ret;
		return -EINVAL;
	}

	mutex_lock(&pdata->ops_mutex);
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -123,7 +123,7 @@ int msm_dba_helper_i2c_write_byte(struct i2c_client *client,
		return -EINVAL;
	}

	pr_debug("%s: [%s:0x02%x] : W[0x%02x, 0x%02x]\n", __func__,
	pr_debug("%s: [%s:0x%02x] : W[0x%02x, 0x%02x]\n", __func__,
		 client->name, addr, reg, val);
	client->addr = addr;