linux/drivers/mfd/wm8350-irq.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * wm8350-irq.c  --  IRQ support for Wolfson WM8350
 *
 * Copyright 2007, 2008, 2009 Wolfson Microelectronics PLC.
 *
 * Author: Liam Girdwood, Mark Brown
 */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/bug.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/irq.h>

#include <linux/mfd/wm8350/core.h>
#include <linux/mfd/wm8350/audio.h>
#include <linux/mfd/wm8350/comparator.h>
#include <linux/mfd/wm8350/gpio.h>
#include <linux/mfd/wm8350/pmic.h>
#include <linux/mfd/wm8350/rtc.h>
#include <linux/mfd/wm8350/supply.h>
#include <linux/mfd/wm8350/wdt.h>

#define WM8350_INT_OFFSET_1
#define WM8350_INT_OFFSET_2
#define WM8350_POWER_UP_INT_OFFSET
#define WM8350_UNDER_VOLTAGE_INT_OFFSET
#define WM8350_OVER_CURRENT_INT_OFFSET
#define WM8350_GPIO_INT_OFFSET
#define WM8350_COMPARATOR_INT_OFFSET

struct wm8350_irq_data {};

static struct wm8350_irq_data wm8350_irqs[] =;

static inline struct wm8350_irq_data *irq_to_wm8350_irq(struct wm8350 *wm8350,
							int irq)
{}

/*
 * This is a threaded IRQ handler so can access I2C/SPI.  Since all
 * interrupts are clear on read the IRQ line will be reasserted and
 * the physical IRQ will be handled again if another interrupt is
 * asserted while we run - in the normal course of events this is a
 * rare occurrence so we save I2C/SPI reads.  We're also assuming that
 * it's rare to get lots of interrupts firing simultaneously so try to
 * minimise I/O.
 */
static irqreturn_t wm8350_irq(int irq, void *irq_data)
{}

static void wm8350_irq_lock(struct irq_data *data)
{}

static void wm8350_irq_sync_unlock(struct irq_data *data)
{}

static void wm8350_irq_enable(struct irq_data *data)
{}

static void wm8350_irq_disable(struct irq_data *data)
{}

static struct irq_chip wm8350_irq_chip =;

int wm8350_irq_init(struct wm8350 *wm8350, int irq,
		    struct wm8350_platform_data *pdata)
{}

int wm8350_irq_exit(struct wm8350 *wm8350)
{}