#include <linux/delay.h>
#include <linux/device.h>
#include <linux/mod_devicetable.h>
#include <linux/soundwire/sdw_registers.h>
#include <linux/module.h>
#include <linux/pm_runtime.h>
#include "rt711-sdca.h"
#include "rt711-sdca-sdw.h"
static bool rt711_sdca_readable_register(struct device *dev, unsigned int reg)
{ … }
static bool rt711_sdca_volatile_register(struct device *dev, unsigned int reg)
{ … }
static bool rt711_sdca_mbq_readable_register(struct device *dev, unsigned int reg)
{ … }
static bool rt711_sdca_mbq_volatile_register(struct device *dev, unsigned int reg)
{ … }
static const struct regmap_config rt711_sdca_regmap = …;
static const struct regmap_config rt711_sdca_mbq_regmap = …;
static int rt711_sdca_update_status(struct sdw_slave *slave,
enum sdw_slave_status status)
{ … }
static int rt711_sdca_read_prop(struct sdw_slave *slave)
{ … }
static int rt711_sdca_interrupt_callback(struct sdw_slave *slave,
struct sdw_slave_intr_status *status)
{ … }
static const struct sdw_slave_ops rt711_sdca_slave_ops = …;
static int rt711_sdca_sdw_probe(struct sdw_slave *slave,
const struct sdw_device_id *id)
{ … }
static int rt711_sdca_sdw_remove(struct sdw_slave *slave)
{ … }
static const struct sdw_device_id rt711_sdca_id[] = …;
MODULE_DEVICE_TABLE(sdw, rt711_sdca_id);
static int __maybe_unused rt711_sdca_dev_suspend(struct device *dev)
{ … }
static int __maybe_unused rt711_sdca_dev_system_suspend(struct device *dev)
{ … }
#define RT711_PROBE_TIMEOUT …
static int __maybe_unused rt711_sdca_dev_resume(struct device *dev)
{ … }
static const struct dev_pm_ops rt711_sdca_pm = …;
static struct sdw_driver rt711_sdca_sdw_driver = …;
module_sdw_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;