[PATCH 2/3] glamo: style/indentation fixes
Thibaut Girka
thib at sitedethib.com
Mon Jun 21 23:45:17 CEST 2010
---
drivers/mfd/glamo/glamo-core.h | 10 +++++-----
drivers/mfd/glamo/glamo-gpio.c | 8 ++++----
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/mfd/glamo/glamo-core.h b/drivers/mfd/glamo/glamo-core.h
index 8897f90..34ec7c4 100644
--- a/drivers/mfd/glamo/glamo-core.h
+++ b/drivers/mfd/glamo/glamo-core.h
@@ -17,14 +17,14 @@
#define GLAMO_FB_SIZE (GLAMO_INTERNAL_RAM_SIZE - GLAMO_MMC_BUFFER_SIZE)
enum glamo_pll {
- GLAMO_PLL1,
- GLAMO_PLL2,
+ GLAMO_PLL1,
+ GLAMO_PLL2,
};
enum glamo_engine_state {
- GLAMO_ENGINE_DISABLED,
- GLAMO_ENGINE_SUSPENDED,
- GLAMO_ENGINE_ENABLED,
+ GLAMO_ENGINE_DISABLED,
+ GLAMO_ENGINE_SUSPENDED,
+ GLAMO_ENGINE_ENABLED,
};
struct glamo_core {
diff --git a/drivers/mfd/glamo/glamo-gpio.c b/drivers/mfd/glamo/glamo-gpio.c
index 30ee6ed..820f140 100644
--- a/drivers/mfd/glamo/glamo-gpio.c
+++ b/drivers/mfd/glamo/glamo-gpio.c
@@ -43,7 +43,7 @@ struct glamo_gpio {
uint16_t saved_regs[GLAMO_NR_GPIO_REGS];
};
-#define REG_OF_GPIO(gpio) (GLAMO_REG_GPIO(gpio >> 2))
+#define REG_OF_GPIO(gpio) (GLAMO_REG_GPIO(gpio >> 2))
#define NUM_OF_GPIO(gpio) (gpio & 0x3)
#define DIRECTION_BIT(gpio) (1 << (NUM_OF_GPIO(gpio) + 0))
#define OUTPUT_BIT(gpio) (1 << (NUM_OF_GPIO(gpio) + 4))
@@ -111,7 +111,7 @@ static void glamo_gpio_free(struct gpio_chip *chip, unsigned offset)
}
static int glamo_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
- int value)
+ int value)
{
struct glamo_core *glamo = chip_to_glamo(chip);
unsigned int reg = REG_OF_GPIO(offset);
@@ -119,7 +119,7 @@ static int glamo_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
spin_lock(&glamo->lock);
tmp = readw(glamo->base + reg);
- tmp &= ~DIRECTION_BIT(offset);
+ tmp &= ~DIRECTION_BIT(offset);
if (value)
tmp |= OUTPUT_BIT(offset);
@@ -160,7 +160,7 @@ static const struct __devinit gpio_chip glamo_gpio_chip = {
.base = -1,
.ngpio = GLAMO_NR_GPIO,
.can_sleep = 0,
- .owner = THIS_MODULE,
+ .owner = THIS_MODULE,
};
static int __devinit glamo_gpio_probe(struct platform_device *pdev)
--
1.7.1
More information about the openmoko-kernel
mailing list