Commit 162a656c authored by Dirk Behme's avatar Dirk Behme Committed by Tony Lindgren

Make omapfb_main.c compile again and remove warnings:

    CC      drivers/video/omap/omapfb_main.o
drivers/video/omap/omapfb_main.c: In function omapfb_suspend'
drivers/video/omap/omapfb_main.c: At top level:
drivers/video/omap/omapfb_main.c:1645: warning: initialization from
incompatible pointer type
drivers/video/omap/omapfb_main.c:1646: warning: initialization from
incompatible pointer type
drivers/video/omap/omapfb_main.c:1702: warning: initialization from
incompatible pointer type
drivers/video/omap/omapfb_main.c:1704: warning: initialization from
incompatible pointer type
drivers/video/omap/omapfb_main.c:1704: warning: initialization from
incompatible pointer type
drivers/video/omap/omapfb_main.c:1705: warning: initialization from
incompatible pointer type
drivers/video/omap/omapfb_main.c:1728: warning: initialization from
incompatible pointer type

Signed-off-by: Dirk Behme <dirk.behme_at_de.bosch.com>
parent d744f881
...@@ -623,7 +623,7 @@ static int omapfb_blank(int blank, struct fb_info *info) ...@@ -623,7 +623,7 @@ static int omapfb_blank(int blank, struct fb_info *info)
omapfb_resume(fbdev->dev, 0); omapfb_resume(fbdev->dev, 0);
break; break;
case VESA_POWERDOWN: case VESA_POWERDOWN:
omapfb_suspend(fbdev->dev, 0, 0); omapfb_suspend(fbdev->dev, PMSG_SUSPEND, 0);
break; break;
default: default:
r = -EINVAL; r = -EINVAL;
...@@ -1617,7 +1617,7 @@ static struct fb_ops omapfb_ops = { ...@@ -1617,7 +1617,7 @@ static struct fb_ops omapfb_ops = {
* --------------------------------------------------------------------------- * ---------------------------------------------------------------------------
*/ */
/* omapfbX sysfs entries */ /* omapfbX sysfs entries */
static ssize_t omapfb_show_caps_num(struct device *dev, char *buf) static ssize_t omapfb_show_caps_num(struct device *dev, struct device_attribute *attr, char *buf)
{ {
struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data; struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data;
...@@ -1625,7 +1625,7 @@ static ssize_t omapfb_show_caps_num(struct device *dev, char *buf) ...@@ -1625,7 +1625,7 @@ static ssize_t omapfb_show_caps_num(struct device *dev, char *buf)
omapfb_get_caps(fbdev->fb_info)); omapfb_get_caps(fbdev->fb_info));
} }
static ssize_t omapfb_show_caps_text(struct device *dev, char *buf) static ssize_t omapfb_show_caps_text(struct device *dev, struct device_attribute *attr, char *buf)
{ {
struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data; struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data;
int pos = 0; int pos = 0;
...@@ -1646,14 +1646,14 @@ static DEVICE_ATTR(caps_num, 0444, omapfb_show_caps_num, NULL); ...@@ -1646,14 +1646,14 @@ static DEVICE_ATTR(caps_num, 0444, omapfb_show_caps_num, NULL);
static DEVICE_ATTR(caps_text, 0444, omapfb_show_caps_text, NULL); static DEVICE_ATTR(caps_text, 0444, omapfb_show_caps_text, NULL);
/* panel sysfs entries */ /* panel sysfs entries */
static ssize_t omapfb_show_panel_name(struct device *dev, char *buf) static ssize_t omapfb_show_panel_name(struct device *dev, struct device_attribute *attr, char *buf)
{ {
struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data; struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data;
return snprintf(buf, PAGE_SIZE, "%s\n", fbdev->panel->name); return snprintf(buf, PAGE_SIZE, "%s\n", fbdev->panel->name);
} }
static ssize_t omapfb_show_bklight_level(struct device *dev, char *buf) static ssize_t omapfb_show_bklight_level(struct device *dev,struct device_attribute *attr, char *buf)
{ {
struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data; struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data;
int r; int r;
...@@ -1666,8 +1666,8 @@ static ssize_t omapfb_show_bklight_level(struct device *dev, char *buf) ...@@ -1666,8 +1666,8 @@ static ssize_t omapfb_show_bklight_level(struct device *dev, char *buf)
return r; return r;
} }
static ssize_t omapfb_store_bklight_level(struct device *dev, const char *buf, static ssize_t omapfb_store_bklight_level(struct device *dev, struct device_attribute *attr,
size_t size) const char *buf, size_t size)
{ {
struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data; struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data;
int r; int r;
...@@ -1685,7 +1685,7 @@ static ssize_t omapfb_store_bklight_level(struct device *dev, const char *buf, ...@@ -1685,7 +1685,7 @@ static ssize_t omapfb_store_bklight_level(struct device *dev, const char *buf,
return r ? r : size; return r ? r : size;
} }
static ssize_t omapfb_show_bklight_max(struct device *dev, char *buf) static ssize_t omapfb_show_bklight_max(struct device *dev, struct device_attribute *attr, char *buf)
{ {
struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data; struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data;
int r; int r;
...@@ -1717,7 +1717,7 @@ static struct attribute_group panel_attr_grp = { ...@@ -1717,7 +1717,7 @@ static struct attribute_group panel_attr_grp = {
}; };
/* ctrl sysfs entries */ /* ctrl sysfs entries */
static ssize_t omapfb_show_ctrl_name(struct device *dev, char *buf) static ssize_t omapfb_show_ctrl_name(struct device *dev, struct device_attribute *attr, char *buf)
{ {
struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data; struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment