diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-11-22 21:20:54 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-11-22 21:20:54 +0000 |
commit | d4e53976d91eab4746d286b89a36bc05c767ede2 (patch) | |
tree | 845663e7670e9b9ec677e8aeede82c309d771a9b /firmware/drivers/power.c | |
parent | 011835dec37c49dab5f4e374f6d11ec326fbc67f (diff) | |
download | rockbox-d4e53976d91eab4746d286b89a36bc05c767ede2.tar.gz rockbox-d4e53976d91eab4746d286b89a36bc05c767ede2.zip |
Renamed has_new_lcd() to is_new_player(), and got rid of the alias
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5459 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/power.c')
-rw-r--r-- | firmware/drivers/power.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c index c67dd8be05..d4e8b3315b 100644 --- a/firmware/drivers/power.c +++ b/firmware/drivers/power.c | |||
@@ -119,7 +119,7 @@ void ide_power_enable(bool on) | |||
119 | if(on) | 119 | if(on) |
120 | { | 120 | { |
121 | #ifdef ATA_POWER_PLAYERSTYLE | 121 | #ifdef ATA_POWER_PLAYERSTYLE |
122 | if (has_ata_power_control()) | 122 | if (is_new_player()) |
123 | { | 123 | { |
124 | or_b(0x10, &PBDRL); | 124 | or_b(0x10, &PBDRL); |
125 | touched = true; | 125 | touched = true; |
@@ -134,7 +134,7 @@ void ide_power_enable(bool on) | |||
134 | if(!on) | 134 | if(!on) |
135 | { | 135 | { |
136 | #ifdef ATA_POWER_PLAYERSTYLE | 136 | #ifdef ATA_POWER_PLAYERSTYLE |
137 | if (has_ata_power_control()) | 137 | if (is_new_player()) |
138 | { | 138 | { |
139 | and_b(~0x10, &PBDRL); | 139 | and_b(~0x10, &PBDRL); |
140 | touched = true; | 140 | touched = true; |
@@ -166,7 +166,7 @@ bool ide_powered(void) | |||
166 | { | 166 | { |
167 | #if defined(NEEDS_ATA_POWER_ON) || defined(HAVE_ATA_POWER_OFF) | 167 | #if defined(NEEDS_ATA_POWER_ON) || defined(HAVE_ATA_POWER_OFF) |
168 | #ifdef ATA_POWER_PLAYERSTYLE | 168 | #ifdef ATA_POWER_PLAYERSTYLE |
169 | if (has_ata_power_control()) | 169 | if (is_new_player()) |
170 | { | 170 | { |
171 | if ((PBCR2 & 0x0300) || !(PBIOR & 0x0010)) /* not configured for output */ | 171 | if ((PBCR2 & 0x0300) || !(PBIOR & 0x0010)) /* not configured for output */ |
172 | return false; /* would be floating low, disk off */ | 172 | return false; /* would be floating low, disk off */ |