/* FIXME drop this once the I2C_DEV_NAME_FORMAT macro has been added to include/linux/i2c.h */ #ifndef I2C_DEV_NAME_FORMAT #define I2C_DEV_NAME_FORMAT "i2c-%s" #endif
/* E.g. "avdd\0" */ #define GPIO_SUPPLY_NAME_LENGTH 5 /* 12 chars for acpi_dev_name() + "-", e.g. "ABCD1234:00-" */ #define GPIO_REGULATOR_NAME_LENGTH (12 + GPIO_SUPPLY_NAME_LENGTH) /* lower- and upper-case mapping */ #define GPIO_REGULATOR_SUPPLY_MAP_COUNT 2 /* * Ensure the GPIO is driven low/high for at least 2 ms before changing. * * 2 ms has been chosen because it is the minimum time ovXXXX sensors need to * have their reset line driven logical high to properly register a reset.
*/ #define GPIO_REGULATOR_ENABLE_TIME (2 * USEC_PER_MSEC) #define GPIO_REGULATOR_OFF_ON_DELAY (2 * USEC_PER_MSEC)
unsignedint ngpios; /* how many GPIOs have we seen */ unsignedint n_sensor_gpios; /* how many have we mapped to sensor */ unsignedint n_regulator_gpios; /* how many have we mapped to a regulator */ struct gpiod_lookup_table gpios;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.