mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-26 20:03:07 +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:
parent
58c0b57439
commit
d10aee81b0
@ -30,6 +30,8 @@
|
|||||||
#define u8 unsigned char
|
#define u8 unsigned char
|
||||||
typedef unsigned int uint32_t;
|
typedef unsigned int uint32_t;
|
||||||
|
|
||||||
|
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
||||||
|
|
||||||
enum filesystem {
|
enum filesystem {
|
||||||
FS_RAW,
|
FS_RAW,
|
||||||
FS_FAT,
|
FS_FAT,
|
||||||
|
@ -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 <qi.h>
|
||||||
#include <neo_gta02.h>
|
#include <neo_gta02.h>
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ void start_qi(void)
|
|||||||
|
|
||||||
this_board = boards[board];
|
this_board = boards[board];
|
||||||
while (!n) {
|
while (!n) {
|
||||||
if (board >= (sizeof(boards) / sizeof(boards[0])))
|
if (board >= ARRAY_SIZE(boards))
|
||||||
/* can't put diagnostic on serial... too early */
|
/* can't put diagnostic on serial... too early */
|
||||||
goto unhappy;
|
goto unhappy;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user