OSDN Git Service

usb: host: xhci-mtk: Simplify supplies handling with regulator_bulk
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 14 Feb 2022 11:19:05 +0000 (12:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Feb 2022 15:12:04 +0000 (16:12 +0100)
commit5f508d79449fe2347556fcc963a258cf547f381f
tree3fa04442cdd912a5b9bfd8fbe6f56d6463e9d18f
parent9902951f536c00b7f20c26fd98baa5432bb3c731
usb: host: xhci-mtk: Simplify supplies handling with regulator_bulk

Remove the custom functions xhci_mtk_ldos_{enable,disable}() by
switching to using regulator_bulk to perform the very same thing,
as the regulators are always either both enabled or both disabled.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220214111905.77903-1-angelogioacchino.delregno@collabora.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mtk.c
drivers/usb/host/xhci-mtk.h