linux/drivers/mfd/ezx-pcap.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Driver for Motorola PCAP2 as present in EZX phones
 *
 * Copyright (C) 2006 Harald Welte <[email protected]>
 * Copyright (C) 2009 Daniel Ribeiro <[email protected]>
 */

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/mfd/ezx-pcap.h>
#include <linux/spi/spi.h>
#include <linux/gpio.h>
#include <linux/slab.h>

#define PCAP_ADC_MAXQ
struct pcap_adc_request {};

struct pcap_adc_sync_request {};

struct pcap_chip {};

/* IO */
static int ezx_pcap_putget(struct pcap_chip *pcap, u32 *data)
{}

int ezx_pcap_write(struct pcap_chip *pcap, u8 reg_num, u32 value)
{}
EXPORT_SYMBOL_GPL();

int ezx_pcap_read(struct pcap_chip *pcap, u8 reg_num, u32 *value)
{}
EXPORT_SYMBOL_GPL();

int ezx_pcap_set_bits(struct pcap_chip *pcap, u8 reg_num, u32 mask, u32 val)
{}
EXPORT_SYMBOL_GPL();

/* IRQ */
int irq_to_pcap(struct pcap_chip *pcap, int irq)
{}
EXPORT_SYMBOL_GPL();

int pcap_to_irq(struct pcap_chip *pcap, int irq)
{}
EXPORT_SYMBOL_GPL();

static void pcap_mask_irq(struct irq_data *d)
{}

static void pcap_unmask_irq(struct irq_data *d)
{}

static struct irq_chip pcap_irq_chip =;

static void pcap_msr_work(struct work_struct *work)
{}

static void pcap_isr_work(struct work_struct *work)
{}

static void pcap_irq_handler(struct irq_desc *desc)
{}

/* ADC */
void pcap_set_ts_bits(struct pcap_chip *pcap, u32 bits)
{}
EXPORT_SYMBOL_GPL();

static void pcap_disable_adc(struct pcap_chip *pcap)
{}

static void pcap_adc_trigger(struct pcap_chip *pcap)
{}

static irqreturn_t pcap_adc_irq(int irq, void *_pcap)
{}

int pcap_adc_async(struct pcap_chip *pcap, u8 bank, u32 flags, u8 ch[],
						void *callback, void *data)
{}
EXPORT_SYMBOL_GPL();

static void pcap_adc_sync_cb(void *param, u16 res[])
{}

int pcap_adc_sync(struct pcap_chip *pcap, u8 bank, u32 flags, u8 ch[],
								u16 res[])
{}
EXPORT_SYMBOL_GPL();

/* subdevs */
static int pcap_remove_subdev(struct device *dev, void *unused)
{}

static int pcap_add_subdev(struct pcap_chip *pcap,
						struct pcap_subdev *subdev)
{}

static void ezx_pcap_remove(struct spi_device *spi)
{}

static int ezx_pcap_probe(struct spi_device *spi)
{}

static struct spi_driver ezxpcap_driver =;

static int __init ezx_pcap_init(void)
{}

static void __exit ezx_pcap_exit(void)
{}

subsys_initcall(ezx_pcap_init);
module_exit(ezx_pcap_exit);

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_ALIAS();