]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/video/mb86r0xgdc.c
doc: karo: added description of boot_mode variable
[karo-tx-uboot.git] / drivers / video / mb86r0xgdc.c
index 3bdc1db61d6e0fce5f78bc43b1853733bb2b4e93..bb7a7497cc5e6e6b7a8b89333276af85527b4442 100644 (file)
@@ -2,23 +2,7 @@
  * (C) Copyright 2010
  * Matthias Weisser <weisserm@arcor.de>
  *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /*
@@ -57,7 +41,6 @@ static void dsp_init(struct mb86r0x_gdc_dsp *dsp, char *modestr,
        u16 l2dx, l2dy, l2wx, l2wy, l2ww, l2wh;
        unsigned long div;
        int bpp;
-       u32 i;
 
        bpp = video_get_params(&var_mode, modestr);
 
@@ -77,8 +60,7 @@ static void dsp_init(struct mb86r0x_gdc_dsp *dsp, char *modestr,
        }
 
        /* Fill memory with white */
-       for (i = 0; i < var_mode.xres * var_mode.yres / 2; i++)
-               *videomem++ = 0xFFFFFFFF;
+       memset(videomem, 0xFF, var_mode.xres * var_mode.yres * 2);
 
        mb86r0x.winSizeX = var_mode.xres;
        mb86r0x.winSizeY = var_mode.yres;