mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
MIPS: static should be at beginning of declaration
Make sure that the 'static' keywork is at the beginning of declaration for arch/mips/include/asm/mach-jz4740/gpio.h This gets rid of warnings like warning: ‘static’ is not at beginning of declaration when building with -Wold-style-declaration (and/or -Wextra which also enables it). Also a few tiny whitespace changes. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
82d508fac3
commit
628d7f697c
1 changed files with 2 additions and 3 deletions
|
@ -25,14 +25,13 @@ enum jz_gpio_function {
|
||||||
JZ_GPIO_FUNC3,
|
JZ_GPIO_FUNC3,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Usually a driver for a SoC component has to request several gpio pins and
|
Usually a driver for a SoC component has to request several gpio pins and
|
||||||
configure them as funcion pins.
|
configure them as funcion pins.
|
||||||
jz_gpio_bulk_request can be used to ease this process.
|
jz_gpio_bulk_request can be used to ease this process.
|
||||||
Usually one would do something like:
|
Usually one would do something like:
|
||||||
|
|
||||||
const static struct jz_gpio_bulk_request i2c_pins[] = {
|
static const struct jz_gpio_bulk_request i2c_pins[] = {
|
||||||
JZ_GPIO_BULK_PIN(I2C_SDA),
|
JZ_GPIO_BULK_PIN(I2C_SDA),
|
||||||
JZ_GPIO_BULK_PIN(I2C_SCK),
|
JZ_GPIO_BULK_PIN(I2C_SCK),
|
||||||
};
|
};
|
||||||
|
@ -47,8 +46,8 @@ enum jz_gpio_function {
|
||||||
|
|
||||||
jz_gpio_bulk_free(i2c_pins, ARRAY_SIZE(i2c_pins));
|
jz_gpio_bulk_free(i2c_pins, ARRAY_SIZE(i2c_pins));
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct jz_gpio_bulk_request {
|
struct jz_gpio_bulk_request {
|
||||||
int gpio;
|
int gpio;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
Loading…
Reference in a new issue