#include <linux/err.h>
#include <linux/mfd/altera-a10sr.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/reset-controller.h>
#include <dt-bindings/reset/altr,rst-mgr-a10sr.h>
struct a10sr_reset { … };
static inline struct a10sr_reset *to_a10sr_rst(struct reset_controller_dev *rc)
{ … }
static inline int a10sr_reset_shift(unsigned long id)
{ … }
static int a10sr_reset_update(struct reset_controller_dev *rcdev,
unsigned long id, bool assert)
{ … }
static int a10sr_reset_assert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int a10sr_reset_deassert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int a10sr_reset_status(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static const struct reset_control_ops a10sr_reset_ops = …;
static int a10sr_reset_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id a10sr_reset_of_match[] = …;
MODULE_DEVICE_TABLE(of, a10sr_reset_of_match);
static struct platform_driver a10sr_reset_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;