#include <linux/delay.h>
#include <linux/device.h>
#include <linux/mfd/syscon.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include "reset.h"
static inline struct visconti_reset *to_visconti_reset(struct reset_controller_dev *rcdev)
{ … }
static int visconti_reset_assert(struct reset_controller_dev *rcdev, unsigned long id)
{ … }
static int visconti_reset_deassert(struct reset_controller_dev *rcdev, unsigned long id)
{ … }
static int visconti_reset_reset(struct reset_controller_dev *rcdev, unsigned long id)
{ … }
static int visconti_reset_status(struct reset_controller_dev *rcdev, unsigned long id)
{ … }
const struct reset_control_ops visconti_reset_ops = …;
int visconti_register_reset_controller(struct device *dev,
struct regmap *regmap,
const struct visconti_reset_data *resets,
unsigned int num_resets,
const struct reset_control_ops *reset_ops,
spinlock_t *lock)
{ … }