regulator: event: Add regulator netlink event support
authorNaresh Solanki <naresh.solanki@9elements.com>
Tue, 5 Dec 2023 10:52:04 +0000 (16:22 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 6 Dec 2023 13:14:54 +0000 (13:14 +0000)
commit16e5ac127d8d18adf85fe5ba847d77b58d1ed418
tree96801e386a05ff7c824500ae7cb816d91999f9af
parent753e4d5c433da57da75dd4c3e1aececc8e874a62
regulator: event: Add regulator netlink event support

This commit introduces netlink event support to the regulator subsystem.

Changes:
- Introduce event.c and regnl.h for netlink event handling.
- Implement reg_generate_netlink_event to broadcast regulator events.
- Update Makefile to include the new event.c file.

Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
Link: https://lore.kernel.org/r/20231205105207.1262928-1-naresh.solanki@9elements.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/Kconfig
drivers/regulator/Makefile
drivers/regulator/core.c
drivers/regulator/event.c [new file with mode: 0644]
drivers/regulator/regnl.h [new file with mode: 0644]
include/linux/regulator/consumer.h
include/uapi/regulator/regulator.h [new file with mode: 0644]