linux/drivers/gpio/gpio-ds4520.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (c) 2023 Analog Devices, Inc.
 * Driver for the DS4520 I/O Expander
 */

#include <linux/device.h>
#include <linux/gpio/driver.h>
#include <linux/gpio/regmap.h>
#include <linux/i2c.h>
#include <linux/property.h>
#include <linux/regmap.h>

#define DS4520_PULLUP0
#define DS4520_IO_CONTROL0
#define DS4520_IO_STATUS0

static const struct regmap_config ds4520_regmap_config =;

static int ds4520_gpio_probe(struct i2c_client *client)
{}

static const struct of_device_id ds4520_gpio_of_match_table[] =;
MODULE_DEVICE_TABLE(of, ds4520_gpio_of_match_table);

static const struct i2c_device_id ds4520_gpio_id_table[] =;
MODULE_DEVICE_TABLE(i2c, ds4520_gpio_id_table);

static struct i2c_driver ds4520_gpio_driver =;
module_i2c_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();