#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pse-pd/pse.h>
#include <linux/regulator/consumer.h>
struct pse_reg_priv { … };
static struct pse_reg_priv *to_pse_reg(struct pse_controller_dev *pcdev)
{ … }
static int
pse_reg_pi_enable(struct pse_controller_dev *pcdev, int id)
{ … }
static int
pse_reg_pi_disable(struct pse_controller_dev *pcdev, int id)
{ … }
static int
pse_reg_pi_is_enabled(struct pse_controller_dev *pcdev, int id)
{ … }
static int
pse_reg_ethtool_get_status(struct pse_controller_dev *pcdev, unsigned long id,
struct netlink_ext_ack *extack,
struct pse_control_status *status)
{ … }
static const struct pse_controller_ops pse_reg_ops = …;
static int
pse_reg_probe(struct platform_device *pdev)
{ … }
static const __maybe_unused struct of_device_id pse_reg_of_match[] = …;
MODULE_DEVICE_TABLE(of, pse_reg_of_match);
static struct platform_driver pse_reg_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;