lkml.org 
[lkml]   [2019]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/4] regulator: add and use a helper for setting supply names
Date
From: Bartosz Golaszewski <bgolaszewski@baylibre.com>

There are ~80 users of regulator bulk APIs that set the supply names
in a for loop before using the bulk helpers.

This series proposes to add a helper function for setting supply names
and uses it in a couple tegra drivers. If accepted: a coccinelle script
should be easy to develop that would address this in other drivers.

Bartosz Golaszewski (4):
regulator: provide regulator_bulk_set_supply_names()
ahci: tegra: use regulator_bulk_set_supply_names()
phy: tegra: use regulator_bulk_set_supply_names()
usb: host: xhci-tegra: use regulator_bulk_set_supply_names()

drivers/ata/ahci_tegra.c | 6 +++---
drivers/phy/tegra/xusb.c | 6 +++---
drivers/regulator/helpers.c | 21 +++++++++++++++++++++
drivers/usb/host/xhci-tegra.c | 5 +++--
include/linux/regulator/consumer.h | 12 ++++++++++++
5 files changed, 42 insertions(+), 8 deletions(-)

--
2.21.0

\
 
 \ /
  Last update: 2019-08-30 09:18    [W:1.958 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site