i.MX31: Rename something

Might as well rename spi_enable_module to spi_enable_node for consistency
as well so long as I'm being picky.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31442 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-12-26 15:43:11 +00:00
parent d56daa1f7e
commit 4e8320d2ec
4 changed files with 7 additions and 7 deletions

View file

@ -116,7 +116,7 @@ static void lcd_write_reg(unsigned reg, unsigned val)
static void lcd_enable_interface(bool enable)
{
spi_enable_module(&lcd_spi_node, enable);
spi_enable_node(&lcd_spi_node, enable);
}
static void lcd_set_power(bool powered)

View file

@ -139,7 +139,7 @@ void INIT_ATTR mc13783_init(void)
semaphore_init(&mc13783_svc_wake, 1, 0);
/* Enable the PMIC SPI module */
spi_enable_module(&mc13783_spi, true);
spi_enable_node(&mc13783_spi, true);
/* Mask any PMIC interrupts for now - modules will enable them as
* required */
@ -164,7 +164,7 @@ void mc13783_close(void)
mc13783_thread_id = 0;
semaphore_release(&mc13783_svc_wake);
thread_wait(thread_id);
spi_enable_module(&mc13783_spi, false);
spi_enable_node(&mc13783_spi, false);
}
bool mc13783_enable_event(enum mc13783_event_ids id)

View file

@ -354,8 +354,8 @@ void INIT_ATTR spi_init(void)
}
}
/* Enable or disable the specified module for the node */
void spi_enable_module(const struct spi_node *node, bool enable)
/* Enable or disable the node - modules will be switch on/off accordingly. */
void spi_enable_node(const struct spi_node *node, bool enable)
{
struct spi_module_desc * const desc = &spi_descs[node->num];

View file

@ -74,8 +74,8 @@ struct spi_transfer_desc
/* One-time init of SPI driver */
void spi_init(void);
/* Enable or disable the specified module for the node */
void spi_enable_module(const struct spi_node *node, bool enable);
/* Enable or disable the node - modules will be switch on/off accordingly. */
void spi_enable_node(const struct spi_node *node, bool enable);
/* Send and/or receive data on the specified node (asychronous) */
bool spi_transfer(struct spi_transfer_desc *xfer);