|
@@ -25,14 +25,13 @@ enum jz_gpio_function {
|
|
|
JZ_GPIO_FUNC3,
|
|
|
};
|
|
|
|
|
|
-
|
|
|
/*
|
|
|
Usually a driver for a SoC component has to request several gpio pins and
|
|
|
configure them as funcion pins.
|
|
|
jz_gpio_bulk_request can be used to ease this process.
|
|
|
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_SCK),
|
|
|
};
|
|
@@ -47,8 +46,8 @@ enum jz_gpio_function {
|
|
|
|
|
|
jz_gpio_bulk_free(i2c_pins, ARRAY_SIZE(i2c_pins));
|
|
|
|
|
|
-
|
|
|
*/
|
|
|
+
|
|
|
struct jz_gpio_bulk_request {
|
|
|
int gpio;
|
|
|
const char *name;
|