History

regulator: core: Only support passing enable GPIO descriptors

Now that we changed all providers to pass descriptors into the core for enable GPIOs instead of a global GPIO number, delete the support for passing GPIO numbers in, and we get a cleanup and size reduction in the core, and from a GPIO point of view we use the modern, cleaner interface.

Linus Walleij committed 7 years ago

Commit 541d0521 parent d162d042 files · +7 −37Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/regulator/driver.h+1−11
@@ -401,13 +401,7 @@ struct regulator_desc { · 400 unmodified lines
401401 * NULL).
402402 * @regmap: regmap to use for core regmap helpers if dev_get_regmap() is
403403 * insufficient.
404− * @ena_gpio_initialized: GPIO controlling regulator enable was properly
405− * initialized, meaning that >= 0 is a valid gpio
406− * identifier and < 0 is a non existent gpio.
407− * @ena_gpio: GPIO controlling regulator enable.
408− * @ena_gpiod: GPIO descriptor controlling regulator enable.
409− * @ena_gpio_invert: Sense for GPIO enable control.
410− * @ena_gpio_flags: Flags to use when calling gpio_request_one()
404+ * @ena_gpiod: GPIO controlling regulator enable.
411405 */
412406 struct regulator_config {
413407 struct device *dev;
@@ -416,11 +410,7 @@ struct regulator_config { · 2 unmodified lines
416410 struct device_node *of_node;
417411 struct regmap *regmap;
418412
419− bool ena_gpio_initialized;
420− int ena_gpio;
421413 struct gpio_desc *ena_gpiod;
422− unsigned int ena_gpio_invert:1;
423− unsigned int ena_gpio_flags;
424414 };
425415
426416 /*

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t