1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-12-23 20:03:00 +02:00

add-copyright-notices.patch

Little notice cleanup + add ARRAY_SIZE

Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green 2008-11-28 10:16:36 +00:00 committed by Andy Green
parent 58c0b57439
commit d10aee81b0
3 changed files with 28 additions and 1 deletions

View File

@ -30,6 +30,8 @@
#define u8 unsigned char
typedef unsigned int uint32_t;
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
enum filesystem {
FS_RAW,
FS_FAT,

View File

@ -1,3 +1,28 @@
/*
* (C) Copyright 2007 OpenMoko, Inc.
* Author: Andy Green <andy@openmoko.com>
*
* (port_init_gta02 came out of Openmoko U-Boot)
*
* Configuation settings for the OPENMOKO Neo GTA02 Linux GSM phone
*
* 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
*
*/
#include <qi.h>
#include <neo_gta02.h>

View File

@ -67,7 +67,7 @@ void start_qi(void)
this_board = boards[board];
while (!n) {
if (board >= (sizeof(boards) / sizeof(boards[0])))
if (board >= ARRAY_SIZE(boards))
/* can't put diagnostic on serial... too early */
goto unhappy;