"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "drivers/video/fbdev/omap/omapfb_main.c" between
linux-5.3-rc3.tar.gz and linux-5.3-rc4.tar.gz

About: The full source of the development Linux kernel 5.3 (release candidate).

omapfb_main.c  (linux-5.3-rc3):omapfb_main.c  (linux-5.3-rc4)
skipping to change at line 450 skipping to change at line 450
plane->color_mode = OMAPFB_COLOR_CLUT_2BPP; plane->color_mode = OMAPFB_COLOR_CLUT_2BPP;
return 0; return 0;
case 4: case 4:
plane->color_mode = OMAPFB_COLOR_CLUT_4BPP; plane->color_mode = OMAPFB_COLOR_CLUT_4BPP;
return 0; return 0;
case 8: case 8:
plane->color_mode = OMAPFB_COLOR_CLUT_8BPP; plane->color_mode = OMAPFB_COLOR_CLUT_8BPP;
return 0; return 0;
case 12: case 12:
var->bits_per_pixel = 16; var->bits_per_pixel = 16;
/* fall through */
case 16: case 16:
if (plane->fbdev->panel->bpp == 12) if (plane->fbdev->panel->bpp == 12)
plane->color_mode = OMAPFB_COLOR_RGB444; plane->color_mode = OMAPFB_COLOR_RGB444;
else else
plane->color_mode = OMAPFB_COLOR_RGB565; plane->color_mode = OMAPFB_COLOR_RGB565;
return 0; return 0;
default: default:
return -EINVAL; return -EINVAL;
} }
} }
skipping to change at line 1536 skipping to change at line 1537
* sequence. * sequence.
*/ */
static void omapfb_free_resources(struct omapfb_device *fbdev, int state) static void omapfb_free_resources(struct omapfb_device *fbdev, int state)
{ {
int i; int i;
switch (state) { switch (state) {
case OMAPFB_ACTIVE: case OMAPFB_ACTIVE:
for (i = 0; i < fbdev->mem_desc.region_cnt; i++) for (i = 0; i < fbdev->mem_desc.region_cnt; i++)
unregister_framebuffer(fbdev->fb_info[i]); unregister_framebuffer(fbdev->fb_info[i]);
/* fall through */
case 7: case 7:
omapfb_unregister_sysfs(fbdev); omapfb_unregister_sysfs(fbdev);
/* fall through */
case 6: case 6:
if (fbdev->panel->disable) if (fbdev->panel->disable)
fbdev->panel->disable(fbdev->panel); fbdev->panel->disable(fbdev->panel);
/* fall through */
case 5: case 5:
omapfb_set_update_mode(fbdev, OMAPFB_UPDATE_DISABLED); omapfb_set_update_mode(fbdev, OMAPFB_UPDATE_DISABLED);
/* fall through */
case 4: case 4:
planes_cleanup(fbdev); planes_cleanup(fbdev);
/* fall through */
case 3: case 3:
ctrl_cleanup(fbdev); ctrl_cleanup(fbdev);
/* fall through */
case 2: case 2:
if (fbdev->panel->cleanup) if (fbdev->panel->cleanup)
fbdev->panel->cleanup(fbdev->panel); fbdev->panel->cleanup(fbdev->panel);
/* fall through */
case 1: case 1:
dev_set_drvdata(fbdev->dev, NULL); dev_set_drvdata(fbdev->dev, NULL);
kfree(fbdev); kfree(fbdev);
case 0: case 0:
/* nothing to free */ /* nothing to free */
break; break;
default: default:
BUG(); BUG();
} }
} }
 End of changes. 8 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)