diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-12-27 09:44:11 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-12-27 09:44:11 -0500 |
commit | a44dca1717ce2c2381339e21c07d1731a63a7888 (patch) | |
tree | 3d0b3bd26492f9fa1f1f1c1ad838315b266da7c1 /drivers/video/s3c-fb.c | |
parent | 30ebc5e44d057a1619ad63fe32c8c1670c37c4b8 (diff) | |
parent | a49f0d1ea3ec94fc7cf33a7c36a16343b74bd565 (diff) |
Merge tag 'v3.8-rc1' into staging/for_v3.9
Linux 3.8-rc1
* tag 'v3.8-rc1': (10696 commits)
Linux 3.8-rc1
Revert "nfsd: warn on odd reply state in nfsd_vfs_read"
ARM: dts: fix duplicated build target and alphabetical sort out for exynos
dm stripe: add WRITE SAME support
dm: remove map_info
dm snapshot: do not use map_context
dm thin: dont use map_context
dm raid1: dont use map_context
dm flakey: dont use map_context
dm raid1: rename read_record to bio_record
dm: move target request nr to dm_target_io
dm snapshot: use per_bio_data
dm verity: use per_bio_data
dm raid1: use per_bio_data
dm: introduce per_bio_data
dm kcopyd: add WRITE SAME support to dm_kcopyd_zero
dm linear: add WRITE SAME support
dm: add WRITE SAME support
dm: prepare to support WRITE SAME
dm ioctl: use kmalloc if possible
...
Conflicts:
MAINTAINERS
Diffstat (limited to 'drivers/video/s3c-fb.c')
-rw-r--r-- | drivers/video/s3c-fb.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index 2ed7b633bbd9..1a00ad241edd 100644 --- a/drivers/video/s3c-fb.c +++ b/drivers/video/s3c-fb.c | |||
@@ -189,7 +189,7 @@ struct s3c_fb_vsync { | |||
189 | 189 | ||
190 | /** | 190 | /** |
191 | * struct s3c_fb - overall hardware state of the hardware | 191 | * struct s3c_fb - overall hardware state of the hardware |
192 | * @slock: The spinlock protection for this data sturucture. | 192 | * @slock: The spinlock protection for this data structure. |
193 | * @dev: The device that we bound to, for printing, etc. | 193 | * @dev: The device that we bound to, for printing, etc. |
194 | * @bus_clk: The clk (hclk) feeding our interface and possibly pixclk. | 194 | * @bus_clk: The clk (hclk) feeding our interface and possibly pixclk. |
195 | * @lcd_clk: The clk (sclk) feeding pixclk. | 195 | * @lcd_clk: The clk (sclk) feeding pixclk. |
@@ -268,10 +268,10 @@ static int s3c_fb_check_var(struct fb_var_screeninfo *var, | |||
268 | case 8: | 268 | case 8: |
269 | if (sfb->variant.palette[win->index] != 0) { | 269 | if (sfb->variant.palette[win->index] != 0) { |
270 | /* non palletised, A:1,R:2,G:3,B:2 mode */ | 270 | /* non palletised, A:1,R:2,G:3,B:2 mode */ |
271 | var->red.offset = 4; | 271 | var->red.offset = 5; |
272 | var->green.offset = 2; | 272 | var->green.offset = 2; |
273 | var->blue.offset = 0; | 273 | var->blue.offset = 0; |
274 | var->red.length = 5; | 274 | var->red.length = 2; |
275 | var->green.length = 3; | 275 | var->green.length = 3; |
276 | var->blue.length = 2; | 276 | var->blue.length = 2; |
277 | var->transp.offset = 7; | 277 | var->transp.offset = 7; |
@@ -288,6 +288,7 @@ static int s3c_fb_check_var(struct fb_var_screeninfo *var, | |||
288 | /* 666 with one bit alpha/transparency */ | 288 | /* 666 with one bit alpha/transparency */ |
289 | var->transp.offset = 18; | 289 | var->transp.offset = 18; |
290 | var->transp.length = 1; | 290 | var->transp.length = 1; |
291 | /* drop through */ | ||
291 | case 18: | 292 | case 18: |
292 | var->bits_per_pixel = 32; | 293 | var->bits_per_pixel = 32; |
293 | 294 | ||
@@ -329,6 +330,7 @@ static int s3c_fb_check_var(struct fb_var_screeninfo *var, | |||
329 | 330 | ||
330 | default: | 331 | default: |
331 | dev_err(sfb->dev, "invalid bpp\n"); | 332 | dev_err(sfb->dev, "invalid bpp\n"); |
333 | return -EINVAL; | ||
332 | } | 334 | } |
333 | 335 | ||
334 | dev_dbg(sfb->dev, "%s: verified parameters\n", __func__); | 336 | dev_dbg(sfb->dev, "%s: verified parameters\n", __func__); |
@@ -1544,8 +1546,7 @@ static int __devexit s3c_fb_remove(struct platform_device *pdev) | |||
1544 | #ifdef CONFIG_PM_SLEEP | 1546 | #ifdef CONFIG_PM_SLEEP |
1545 | static int s3c_fb_suspend(struct device *dev) | 1547 | static int s3c_fb_suspend(struct device *dev) |
1546 | { | 1548 | { |
1547 | struct platform_device *pdev = to_platform_device(dev); | 1549 | struct s3c_fb *sfb = dev_get_drvdata(dev); |
1548 | struct s3c_fb *sfb = platform_get_drvdata(pdev); | ||
1549 | struct s3c_fb_win *win; | 1550 | struct s3c_fb_win *win; |
1550 | int win_no; | 1551 | int win_no; |
1551 | 1552 | ||
@@ -1572,8 +1573,7 @@ static int s3c_fb_suspend(struct device *dev) | |||
1572 | 1573 | ||
1573 | static int s3c_fb_resume(struct device *dev) | 1574 | static int s3c_fb_resume(struct device *dev) |
1574 | { | 1575 | { |
1575 | struct platform_device *pdev = to_platform_device(dev); | 1576 | struct s3c_fb *sfb = dev_get_drvdata(dev); |
1576 | struct s3c_fb *sfb = platform_get_drvdata(pdev); | ||
1577 | struct s3c_fb_platdata *pd = sfb->pdata; | 1577 | struct s3c_fb_platdata *pd = sfb->pdata; |
1578 | struct s3c_fb_win *win; | 1578 | struct s3c_fb_win *win; |
1579 | int win_no; | 1579 | int win_no; |
@@ -1623,7 +1623,7 @@ static int s3c_fb_resume(struct device *dev) | |||
1623 | if (!win) | 1623 | if (!win) |
1624 | continue; | 1624 | continue; |
1625 | 1625 | ||
1626 | dev_dbg(&pdev->dev, "resuming window %d\n", win_no); | 1626 | dev_dbg(dev, "resuming window %d\n", win_no); |
1627 | s3c_fb_set_par(win->fbinfo); | 1627 | s3c_fb_set_par(win->fbinfo); |
1628 | } | 1628 | } |
1629 | 1629 | ||
@@ -1636,8 +1636,7 @@ static int s3c_fb_resume(struct device *dev) | |||
1636 | #ifdef CONFIG_PM_RUNTIME | 1636 | #ifdef CONFIG_PM_RUNTIME |
1637 | static int s3c_fb_runtime_suspend(struct device *dev) | 1637 | static int s3c_fb_runtime_suspend(struct device *dev) |
1638 | { | 1638 | { |
1639 | struct platform_device *pdev = to_platform_device(dev); | 1639 | struct s3c_fb *sfb = dev_get_drvdata(dev); |
1640 | struct s3c_fb *sfb = platform_get_drvdata(pdev); | ||
1641 | 1640 | ||
1642 | if (!sfb->variant.has_clksel) | 1641 | if (!sfb->variant.has_clksel) |
1643 | clk_disable_unprepare(sfb->lcd_clk); | 1642 | clk_disable_unprepare(sfb->lcd_clk); |
@@ -1649,8 +1648,7 @@ static int s3c_fb_runtime_suspend(struct device *dev) | |||
1649 | 1648 | ||
1650 | static int s3c_fb_runtime_resume(struct device *dev) | 1649 | static int s3c_fb_runtime_resume(struct device *dev) |
1651 | { | 1650 | { |
1652 | struct platform_device *pdev = to_platform_device(dev); | 1651 | struct s3c_fb *sfb = dev_get_drvdata(dev); |
1653 | struct s3c_fb *sfb = platform_get_drvdata(pdev); | ||
1654 | struct s3c_fb_platdata *pd = sfb->pdata; | 1652 | struct s3c_fb_platdata *pd = sfb->pdata; |
1655 | 1653 | ||
1656 | clk_prepare_enable(sfb->bus_clk); | 1654 | clk_prepare_enable(sfb->bus_clk); |
@@ -1910,7 +1908,7 @@ static struct s3c_fb_driverdata s3c_fb_data_exynos4 = { | |||
1910 | static struct s3c_fb_driverdata s3c_fb_data_exynos5 = { | 1908 | static struct s3c_fb_driverdata s3c_fb_data_exynos5 = { |
1911 | .variant = { | 1909 | .variant = { |
1912 | .nr_windows = 5, | 1910 | .nr_windows = 5, |
1913 | .vidtcon = VIDTCON0, | 1911 | .vidtcon = FIMD_V8_VIDTCON0, |
1914 | .wincon = WINCON(0), | 1912 | .wincon = WINCON(0), |
1915 | .winmap = WINxMAP(0), | 1913 | .winmap = WINxMAP(0), |
1916 | .keycon = WKEYCON, | 1914 | .keycon = WKEYCON, |