Skip to content

regulator: add userspace-consumer driver

Mike Rapoport lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2regulator: move regulator_consumer_supply from machine.h to consumer.hinclude/linux/regulator/consumer.h include/linux/regulator/machine.h+14 -130 replies
2/2regulator: add userspace-consumer driverdrivers/regulator/Kconfig drivers/regulator/Makefile drivers/regulator/userspace-consumer.c +1 more+249 -08 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMark Brown
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] regulator: add userspace-consumer driver

The userspace-consumer driver allows control of voltage and current regulator state from userspace. This is required for fine-grained power management of devices that are completely controller by userspace applications, e.g. a GPS transciever connected to a serial port.

The first patch in the serie reorginases the way structs are defined in the regulator framework headers so that regulator_consumer_supply can be used without need to include include/linux/regulator/machine.h

The second patch is actully userspace-consumer driver implementation.

Mike Rapoport (2):
regulator: move regulator_consumer_supply from machine.h to
consumer.h
regulator: add userspace-consumer driver

 drivers/regulator/Kconfig                    |   10 ++
 drivers/regulator/Makefile                   |    1 +
 drivers/regulator/userspace-consumer.c       |  213 ++++++++++++++++++++++++++
 include/linux/regulator/consumer.h           |   13 ++
 include/linux/regulator/machine.h            |   14 +--
 include/linux/regulator/userspace-consumer.h |   25 +++
 6 files changed, 263 insertions(+), 13 deletions(-)
 create mode 100644 drivers/regulator/userspace-consumer.c
 create mode 100644 include/linux/regulator/userspace-consumer.h