{
struct hdmi_delayed_work *work;
- DBG("%s event %04x delay %d", __func__, event, delay);
+ DBG("%s event %04x delay %d\n", __func__, event, delay);
work = kmalloc(sizeof(*work), GFP_ATOMIC);
static inline void hdmi_wq_set_output(struct hdmi *hdmi, int mute)
{
- DBG("%s mute %d", __func__, mute);
+ DBG("%s mute %d\n", __func__, mute);
if (hdmi->ops->setmute)
hdmi->ops->setmute(hdmi, mute);
}
static inline void hdmi_wq_set_audio(struct hdmi *hdmi)
{
- DBG("%s", __func__);
+ DBG("%s\n", __func__);
if (hdmi->ops->setaudio)
hdmi->ops->setaudio(hdmi, &hdmi->audio);
}
{
struct hdmi_video video;
- DBG("%s", __func__);
+ DBG("%s\n", __func__);
video.vic = hdmi->vic & HDMI_VIC_MASK;
video.sink_hdmi = hdmi->edid.sink_hdmi;
hdmi->ops->setvideo(hdmi, &video);
}
+static inline void hdmi_destroy_modelist(struct list_head *head)
+{
+ struct list_head *pos, *n;
+
+ list_for_each_safe(pos, n, head) {
+ list_del(pos);
+ kfree(pos);
+ }
+}
+
static void hdmi_wq_parse_edid(struct hdmi *hdmi)
{
struct hdmi_edid *pedid;
if (hdmi == NULL)
return;
- DBG("%s", __func__);
+ DBG("%s\n", __func__);
pedid = &(hdmi->edid);
- fb_destroy_modelist(&pedid->modelist);
+ hdmi_destroy_modelist(&(pedid->modelist));
memset(pedid, 0, sizeof(struct hdmi_edid));
INIT_LIST_HEAD(&pedid->modelist);
-
buff = kmalloc(HDMI_EDID_BLOCK_SIZE, GFP_KERNEL);
if (buff == NULL) {
dev_err(hdmi->dev,
static void hdmi_wq_insert(struct hdmi *hdmi)
{
- DBG("%s", __func__);
+ DBG("%s\n", __func__);
if (hdmi->ops->insert)
hdmi->ops->insert(hdmi);
hdmi_wq_parse_edid(hdmi);
struct list_head *pos, *n;
struct rk_screen screen;
- DBG("%s", __func__);
+ DBG("%s\n", __func__);
if (hdmi->ops->remove)
hdmi->ops->remove(hdmi);
#ifdef CONFIG_SWITCH
case HDMI_HPD_CHANGE:
if (hdmi->ops->getstatus)
hpd = hdmi->ops->getstatus(hdmi);
- DBG("hdmi_work_queue() - hpd is %d hotplug is %d",
+ DBG("hdmi_work_queue() - hpd is %d hotplug is %d\n",
hpd, hdmi->hotplug);
if (hpd != hdmi->hotplug) {
if (hpd == HDMI_HPD_ACTIVED) {
if (i == HDMI_MAX_ID)
return NULL;
- DBG("hdmi_register() - video source %d display %d",
+ DBG("hdmi_register() - video source %d display %d\n",
property->videosrc, property->display);
hdmi = kmalloc(sizeof(*hdmi), GFP_KERNEL);
switch_dev_unregister(&(hdmi->switchdev));
#endif
hdmi_unregister_display_sysfs(hdmi);
- fb_destroy_modelist(&hdmi->edid.modelist);
+ hdmi_destroy_modelist(&hdmi->edid.modelist);
kfree(hdmi->edid.audio);
if (hdmi->edid.specs) {
kfree(hdmi->edid.specs->modedb);