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

Commit 6a5ba49c authored by Casey Piper's avatar Casey Piper
Browse files

msm: mdss: Use common include locations and pointers



Update hdmi to use common linux includes instead
of platform dependent header files. Also update
print statements to use platform independent
%p instead of %x when printing hexadecimal
addresses.

Change-Id: I4722f3f34a4ea23fda3f66eabddac58dfef1556c
Signed-off-by: default avatarCasey Piper <cpiper@codeaurora.org>
parent 638affba
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -13,7 +13,9 @@
#include <linux/io.h>
#include <linux/list.h>
#include <linux/types.h>
#include <mach/board.h>
#include <linux/stat.h>
#include <linux/slab.h>
#include <linux/device.h>

#include "mdss_hdmi_cec.h"

+3 −1
Original line number Diff line number Diff line
@@ -12,7 +12,9 @@

#include <linux/io.h>
#include <linux/types.h>
#include <mach/board.h>
#include <linux/stat.h>
#include <linux/slab.h>
#include <linux/device.h>
#include "mdss_hdmi_edid.h"

#define DBC_START_OFFSET 4
+1 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@
#define __MDSS_HDMI_HDCP_H__

#include "mdss_hdmi_util.h"
#include <soc/qcom/scm.h>

enum hdmi_hdcp_state {
	HDCP_STATE_INACTIVE,
+11 −11
Original line number Diff line number Diff line
@@ -165,29 +165,29 @@ static inline void hdmi_tx_set_audio_switch_node(struct hdmi_tx_ctrl *hdmi_ctrl,
static int hdmi_tx_audio_setup(struct hdmi_tx_ctrl *hdmi_ctrl);
static void hdmi_tx_en_encryption(struct hdmi_tx_ctrl *hdmi_ctrl, u32 on);

struct mdss_hw hdmi_tx_hw = {
static struct mdss_hw hdmi_tx_hw = {
	.hw_ndx = MDSS_HW_HDMI,
	.ptr = NULL,
	.irq_handler = hdmi_tx_isr,
};

struct dss_gpio hpd_gpio_config[] = {
static struct dss_gpio hpd_gpio_config[] = {
	{0, 1, COMPATIBLE_NAME "-hpd"},
	{0, 1, COMPATIBLE_NAME "-mux-en"},
	{0, 0, COMPATIBLE_NAME "-mux-sel"},
	{0, 1, COMPATIBLE_NAME "-mux-lpm"}
};

struct dss_gpio ddc_gpio_config[] = {
static struct dss_gpio ddc_gpio_config[] = {
	{0, 1, COMPATIBLE_NAME "-ddc-mux-sel"},
	{0, 1, COMPATIBLE_NAME "-ddc-clk"},
	{0, 1, COMPATIBLE_NAME "-ddc-data"}
};

struct dss_gpio core_gpio_config[] = {
static struct dss_gpio core_gpio_config[] = {
};

struct dss_gpio cec_gpio_config[] = {
static struct dss_gpio cec_gpio_config[] = {
	{0, 1, COMPATIBLE_NAME "-cec"}
};

@@ -391,7 +391,7 @@ static bool hdmi_tx_is_cea_format(int mode)
	return cea_fmt;
}

const char *hdmi_tx_pm_name(enum hdmi_tx_power_module_type module)
static const char *hdmi_tx_pm_name(enum hdmi_tx_power_module_type module)
{
	switch (module) {
	case HDMI_TX_HPD_PM:	return "HDMI_TX_HPD_PM";
@@ -495,7 +495,7 @@ static inline u32 hdmi_tx_is_dvi_mode(struct hdmi_tx_ctrl *hdmi_ctrl)

static void hdmi_tx_wait_for_audio_engine(struct hdmi_tx_ctrl *hdmi_ctrl)
{
	u32 status = 0;
	u64 status = 0;
	u32 wait_for_vote = 50;
	struct dss_io_data *io = NULL;

@@ -1058,7 +1058,7 @@ static int hdmi_tx_config_avmute(struct hdmi_tx_ctrl *hdmi_ctrl, int set)
	return 0;
} /* hdmi_tx_config_avmute */

void hdmi_tx_hdcp_cb(void *ptr, enum hdmi_hdcp_state status)
static void hdmi_tx_hdcp_cb(void *ptr, enum hdmi_hdcp_state status)
{
	int rc = 0;
	struct hdmi_tx_ctrl *hdmi_ctrl = (struct hdmi_tx_ctrl *)ptr;
@@ -3208,7 +3208,7 @@ static int hdmi_tx_panel_event_handler(struct mdss_panel_data *panel_data,

			timeout = wait_for_completion_timeout(
				&hdmi_ctrl->hpd_done, HZ/10);
			if (!timeout & !hdmi_ctrl->hpd_state) {
			if (!timeout && !hdmi_ctrl->hpd_state) {
				DEV_INFO("%s: cable removed during suspend\n",
					__func__);
				hdmi_tx_send_cable_notification(hdmi_ctrl, 0);
@@ -3362,8 +3362,8 @@ static int hdmi_tx_init_resource(struct hdmi_tx_ctrl *hdmi_ctrl)
				hdmi_tx_io_name(i));
			goto error;
		}
		DEV_INFO("%s: '%s': start = 0x%x, len=0x%x\n", __func__,
			hdmi_tx_io_name(i), (u32)pdata->io[i].base,
		DEV_INFO("%s: '%s': start = 0x%p, len=0x%x\n", __func__,
			hdmi_tx_io_name(i), pdata->io[i].base,
			pdata->io[i].len);
	}

+2 −2
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
 */

#include <linux/io.h>
#include <mach/board.h>
#include <linux/delay.h>
#include "mdss_hdmi_util.h"

static struct msm_hdmi_mode_timing_info
@@ -129,7 +129,7 @@ void hdmi_setup_video_mode_lut(void)
		hdmi_supported_video_mode_lut, MSM_HDMI_MODES_DVI);
} /* hdmi_setup_video_mode_lut */

const char *hdmi_get_single_video_3d_fmt_2string(u32 format)
static const char *hdmi_get_single_video_3d_fmt_2string(u32 format)
{
	switch (format) {
	case TOP_AND_BOTTOM:	return "TAB";