aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2010-06-21 23:45:17 +0200
committerLars-Peter Clausen <lars@metafoo.de>2010-06-23 15:24:53 +0200
commitb44d4e355e2ab380c08adbebd0a2062ec9e198ae (patch)
treef4b1294a0666cec0a35c054c45fbb4045efea971
parented749d913dd945572e4100c2ccbd2d3e0d5af675 (diff)
glamo: style/indentation fixes
-rw-r--r--drivers/mfd/glamo/glamo-core.h10
-rw-r--r--drivers/mfd/glamo/glamo-gpio.c8
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/mfd/glamo/glamo-core.h b/drivers/mfd/glamo/glamo-core.h
index 8897f90c3c0..34ec7c4cdf4 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 30ee6ed1d9a..820f140f171 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)