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:
parent
d56daa1f7e
commit
4e8320d2ec
4 changed files with 7 additions and 7 deletions
|
@ -116,7 +116,7 @@ static void lcd_write_reg(unsigned reg, unsigned val)
|
||||||
|
|
||||||
static void lcd_enable_interface(bool enable)
|
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)
|
static void lcd_set_power(bool powered)
|
||||||
|
|
|
@ -139,7 +139,7 @@ void INIT_ATTR mc13783_init(void)
|
||||||
semaphore_init(&mc13783_svc_wake, 1, 0);
|
semaphore_init(&mc13783_svc_wake, 1, 0);
|
||||||
|
|
||||||
/* Enable the PMIC SPI module */
|
/* 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
|
/* Mask any PMIC interrupts for now - modules will enable them as
|
||||||
* required */
|
* required */
|
||||||
|
@ -164,7 +164,7 @@ void mc13783_close(void)
|
||||||
mc13783_thread_id = 0;
|
mc13783_thread_id = 0;
|
||||||
semaphore_release(&mc13783_svc_wake);
|
semaphore_release(&mc13783_svc_wake);
|
||||||
thread_wait(thread_id);
|
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)
|
bool mc13783_enable_event(enum mc13783_event_ids id)
|
||||||
|
|
|
@ -354,8 +354,8 @@ void INIT_ATTR spi_init(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Enable or disable the specified module for the node */
|
/* Enable or disable the node - modules will be switch on/off accordingly. */
|
||||||
void spi_enable_module(const struct spi_node *node, bool enable)
|
void spi_enable_node(const struct spi_node *node, bool enable)
|
||||||
{
|
{
|
||||||
struct spi_module_desc * const desc = &spi_descs[node->num];
|
struct spi_module_desc * const desc = &spi_descs[node->num];
|
||||||
|
|
||||||
|
|
|
@ -74,8 +74,8 @@ struct spi_transfer_desc
|
||||||
/* One-time init of SPI driver */
|
/* One-time init of SPI driver */
|
||||||
void spi_init(void);
|
void spi_init(void);
|
||||||
|
|
||||||
/* Enable or disable the specified module for the node */
|
/* Enable or disable the node - modules will be switch on/off accordingly. */
|
||||||
void spi_enable_module(const struct spi_node *node, bool enable);
|
void spi_enable_node(const struct spi_node *node, bool enable);
|
||||||
|
|
||||||
/* Send and/or receive data on the specified node (asychronous) */
|
/* Send and/or receive data on the specified node (asychronous) */
|
||||||
bool spi_transfer(struct spi_transfer_desc *xfer);
|
bool spi_transfer(struct spi_transfer_desc *xfer);
|
||||||
|
|
Loading…
Reference in a new issue