Minor binsize savings.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25588 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andree Buschmann 2010-04-11 12:33:02 +00:00
parent 268c6d1e7f
commit f6cecfd91b
2 changed files with 13 additions and 23 deletions

View file

@ -117,17 +117,11 @@ unsigned int battery_adc_voltage(void)
#ifdef HAVE_ACCESSORY_SUPPLY
void accessory_supply_set(bool enable)
{
if (enable)
{
/* Accessory voltage supply on */
pcf50605_write(PCF5060X_D2REGC1, 0xf8); /* 3.3V ON */
}
else
{
/* Accessory voltage supply off */
pcf50605_write(PCF5060X_D2REGC1, 0x18); /* OFF */
}
/* Set accessory power supply to 3.3V, otherwise switch it off. */
unsigned char value = enable ? 0xf8 : 0x18;
/* Write to register. */
pcf50605_write(PCF5060X_D2REGC1, value);
}
#endif