From 4e8320d2ecc473d29da41f669b59c0ab463cb70a Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 26 Dec 2011 15:43:11 +0000 Subject: [PATCH] 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 --- firmware/target/arm/imx31/gigabeat-s/lcd-gigabeat-s.c | 2 +- firmware/target/arm/imx31/mc13783-imx31.c | 4 ++-- firmware/target/arm/imx31/spi-imx31.c | 4 ++-- firmware/target/arm/imx31/spi-imx31.h | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/firmware/target/arm/imx31/gigabeat-s/lcd-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/lcd-gigabeat-s.c index 78d8ba16c3..e20307d61e 100644 --- a/firmware/target/arm/imx31/gigabeat-s/lcd-gigabeat-s.c +++ b/firmware/target/arm/imx31/gigabeat-s/lcd-gigabeat-s.c @@ -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) diff --git a/firmware/target/arm/imx31/mc13783-imx31.c b/firmware/target/arm/imx31/mc13783-imx31.c index 94021ac049..01690f0def 100644 --- a/firmware/target/arm/imx31/mc13783-imx31.c +++ b/firmware/target/arm/imx31/mc13783-imx31.c @@ -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) diff --git a/firmware/target/arm/imx31/spi-imx31.c b/firmware/target/arm/imx31/spi-imx31.c index 076ce7cd7b..34dac9b6a7 100644 --- a/firmware/target/arm/imx31/spi-imx31.c +++ b/firmware/target/arm/imx31/spi-imx31.c @@ -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]; diff --git a/firmware/target/arm/imx31/spi-imx31.h b/firmware/target/arm/imx31/spi-imx31.h index 215093733b..6d07165d3d 100644 --- a/firmware/target/arm/imx31/spi-imx31.h +++ b/firmware/target/arm/imx31/spi-imx31.h @@ -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);