#include <linux/gpio/consumer.h>
#include <linux/i2c.h>
#include <linux/mfd/sy7636a.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/regmap.h>
struct sy7636a_data { … };
static int sy7636a_get_vcom_voltage_op(struct regulator_dev *rdev)
{ … }
static int sy7636a_get_status(struct regulator_dev *rdev)
{ … }
static const struct regulator_ops sy7636a_vcom_volt_ops = …;
static const struct regulator_desc desc = …;
static int sy7636a_regulator_probe(struct platform_device *pdev)
{ … }
static const struct platform_device_id sy7636a_regulator_id_table[] = …;
MODULE_DEVICE_TABLE(platform, sy7636a_regulator_id_table);
static struct platform_driver sy7636a_regulator_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;