From 508bf2b45a7bdd163c7bc7644900f2100f9fe137 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sun, 3 Jan 2010 11:31:14 +0000 Subject: Final removal of tabs in firmware path git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24158 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/dir_uncached.c | 2 +- firmware/common/memset16.c | 2 +- firmware/drivers/dac.h | 6 +++--- firmware/drivers/lcd-charset-player.c | 2 +- firmware/drivers/m66591.c | 8 ++++---- firmware/drivers/rtc/rtc_m41st84w.c | 8 ++++---- firmware/export/config/ipodnano1g.h | 2 +- firmware/export/debug.h | 4 ++-- 8 files changed, 17 insertions(+), 17 deletions(-) (limited to 'firmware') diff --git a/firmware/common/dir_uncached.c b/firmware/common/dir_uncached.c index 5ec5c7fb41..2052503c43 100644 --- a/firmware/common/dir_uncached.c +++ b/firmware/common/dir_uncached.c @@ -175,7 +175,7 @@ struct dirent_uncached* readdir_uncached(DIR_UNCACHED* dir) return NULL; if ( !entry.name[0] ) - return NULL; + return NULL; strlcpy(theent->d_name, entry.name, sizeof(theent->d_name)); theent->attribute = entry.attr; diff --git a/firmware/common/memset16.c b/firmware/common/memset16.c index d73fdd9701..c90e2d7340 100644 --- a/firmware/common/memset16.c +++ b/firmware/common/memset16.c @@ -52,7 +52,7 @@ void memset16(void *dst, int val, size_t len) { buffer = 0; for (i = 0; i < LBLOCKSIZE; i++) - buffer = (buffer << 16) | val; + buffer = (buffer << 16) | val; } while (len >= LBLOCKSIZE*4) diff --git a/firmware/drivers/dac.h b/firmware/drivers/dac.h index 0083fc5fac..121ce74e9d 100644 --- a/firmware/drivers/dac.h +++ b/firmware/drivers/dac.h @@ -26,12 +26,12 @@ #ifdef HAVE_DAC3550A /* - DAC I2C defs + DAC I2C defs */ #define DAC_ADR 0x9a -#define DAC_DEV_WRITE (DAC_ADR | 0x00) +#define DAC_DEV_WRITE (DAC_ADR | 0x00) -#define DAC_REG_WRITE 0xc0 +#define DAC_REG_WRITE 0xc0 /* registers..*/ #define DAC_SR_REG 1 diff --git a/firmware/drivers/lcd-charset-player.c b/firmware/drivers/lcd-charset-player.c index 100510fa2b..ba6f67848b 100644 --- a/firmware/drivers/lcd-charset-player.c +++ b/firmware/drivers/lcd-charset-player.c @@ -733,7 +733,7 @@ const struct xchar_info xchar_info_oldlcd[] = { { 0xa7, 0, 0, 0x63 }, /* § (paragraph sign) */ - { 0xab, XF_LEFTDBLANGLEQUOT, 1, 0x40 }, /* « (left double-angle quotation mark) */ + { 0xab, XF_LEFTDBLANGLEQUOT, 1, 0x40 }, /* « (left double-angle quotation mark) */ { 0xad, 0, 0, 0x31 }, /* ­ (soft hyphen) */ diff --git a/firmware/drivers/m66591.c b/firmware/drivers/m66591.c index d86106988a..f71be3e766 100644 --- a/firmware/drivers/m66591.c +++ b/firmware/drivers/m66591.c @@ -555,9 +555,9 @@ void USB_DEVICE(void) { case CTRL_WTDS: case CTRL_WTND: /* If data is not valid stop */ - if(!(M66591_INTSTAT_MAIN & (1<<3)) ) { - logf("mxx: CTRT interrupt but VALID is false"); - break; + if(!(M66591_INTSTAT_MAIN & (1<<3)) ) { + logf("mxx: CTRT interrupt but VALID is false"); + break; } control_received(); break; @@ -777,7 +777,7 @@ void usb_attach(void) { #endif /* Enable oscillation buffer XCKE */ - M66591_TRN_CTRL |= (1<<13); + M66591_TRN_CTRL |= (1<<13); udelay(1500); diff --git a/firmware/drivers/rtc/rtc_m41st84w.c b/firmware/drivers/rtc/rtc_m41st84w.c index 951091c6f2..5374f66f24 100644 --- a/firmware/drivers/rtc/rtc_m41st84w.c +++ b/firmware/drivers/rtc/rtc_m41st84w.c @@ -26,8 +26,8 @@ #include #define RTC_ADR 0xd0 -#define RTC_DEV_WRITE (RTC_ADR | 0x00) -#define RTC_DEV_READ (RTC_ADR | 0x01) +#define RTC_DEV_WRITE (RTC_ADR | 0x00) +#define RTC_DEV_READ (RTC_ADR | 0x01) void rtc_init(void) { @@ -159,8 +159,8 @@ bool rtc_enable_alarm(bool enable) { data &= 0x5f; /* turn bit d7=AFE and d5=ABE off */ rtc_write(0x0a, data); - sleep(HZ / 10); - rtc_check_alarm_flag(); + sleep(HZ / 10); + rtc_check_alarm_flag(); data |= 0xa0; /* turn bit d7=AFE and d5=ABE on */ rtc_write(0x0a, data); } diff --git a/firmware/export/config/ipodnano1g.h b/firmware/export/config/ipodnano1g.h index e1ec1afa86..5f63c269ed 100644 --- a/firmware/export/config/ipodnano1g.h +++ b/firmware/export/config/ipodnano1g.h @@ -119,7 +119,7 @@ #define BATTERY_CAPACITY_DEFAULT 300 /* default battery capacity */ #define BATTERY_CAPACITY_MIN 200 /* min. capacity selectable */ #define BATTERY_CAPACITY_MAX 600 /* max. capacity selectable */ -#define BATTERY_CAPACITY_INC 20 /* capacity increment */ +#define BATTERY_CAPACITY_INC 20 /* capacity increment */ #define BATTERY_TYPES_COUNT 1 /* only one type */ /* Hardware controlled charging? FIXME */ diff --git a/firmware/export/debug.h b/firmware/export/debug.h index f9f93fdcd9..314b495dd2 100644 --- a/firmware/export/debug.h +++ b/firmware/export/debug.h @@ -33,7 +33,7 @@ extern void ldebugf(const char* file, int line, const char *fmt, ...) /* */ #if defined(SIMULATOR) && !defined(__PCTOOL__) -#define DEBUGF debugf +#define DEBUGF debugf #define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__) #else #if defined(DEBUG) @@ -42,7 +42,7 @@ extern void ldebugf(const char* file, int line, const char *fmt, ...) void breakpoint(void); #endif -#define DEBUGF debugf +#define DEBUGF debugf #define LDEBUGF debugf #else #define DEBUGF(...) -- cgit v1.2.3