move drivers/mfd/*.h to include/linux/mfd

So drivers like collie_battery driver can use
those files easier.
This commit is contained in:
Thomas Kunze 2009-02-10 14:54:57 +01:00 committed by Thomas Kunze
parent 1d0ad843b0
commit c8602edf3f
7 changed files with 9 additions and 7 deletions

View file

@ -17,11 +17,11 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/mfd/mcp.h>
#include <mach/dma.h> #include <mach/dma.h>
#include <asm/system.h> #include <asm/system.h>
#include "mcp.h"
#define to_mcp(d) container_of(d, struct mcp, attached_device) #define to_mcp(d) container_of(d, struct mcp, attached_device)
#define to_mcp_driver(d) container_of(d, struct mcp_driver, drv) #define to_mcp_driver(d) container_of(d, struct mcp_driver, drv)

View file

@ -19,6 +19,7 @@
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/mfd/mcp.h>
#include <mach/dma.h> #include <mach/dma.h>
#include <mach/hardware.h> #include <mach/hardware.h>
@ -28,7 +29,6 @@
#include <mach/assabet.h> #include <mach/assabet.h>
#include "mcp.h"
struct mcp_sa11x0 { struct mcp_sa11x0 {
u32 mccr0; u32 mccr0;

View file

@ -14,10 +14,10 @@
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/mfd/ucb1x00.h>
#include <mach/dma.h> #include <mach/dma.h>
#include "ucb1x00.h"
#define UCB1X00_ATTR(name,input)\ #define UCB1X00_ATTR(name,input)\
static ssize_t name##_show(struct device *dev, struct device_attribute *attr, \ static ssize_t name##_show(struct device *dev, struct device_attribute *attr, \

View file

@ -25,11 +25,11 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/mfd/ucb1x00.h>
#include <mach/dma.h> #include <mach/dma.h>
#include <mach/hardware.h> #include <mach/hardware.h>
#include "ucb1x00.h"
static DEFINE_MUTEX(ucb1x00_mutex); static DEFINE_MUTEX(ucb1x00_mutex);
static LIST_HEAD(ucb1x00_drivers); static LIST_HEAD(ucb1x00_drivers);

View file

@ -30,12 +30,12 @@
#include <linux/freezer.h> #include <linux/freezer.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/kthread.h> #include <linux/kthread.h>
#include <linux/mfd/ucb1x00.h>
#include <mach/dma.h> #include <mach/dma.h>
#include <mach/collie.h> #include <mach/collie.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include "ucb1x00.h"
struct ucb1x00_ts { struct ucb1x00_ts {

View file

@ -10,6 +10,8 @@
#ifndef MCP_H #ifndef MCP_H
#define MCP_H #define MCP_H
#include <mach/dma.h>
struct mcp_ops; struct mcp_ops;
struct mcp { struct mcp {

View file

@ -1,5 +1,5 @@
/* /*
* linux/drivers/mfd/ucb1x00.h * linux/include/mfd/ucb1x00.h
* *
* Copyright (C) 2001 Russell King, All Rights Reserved. * Copyright (C) 2001 Russell King, All Rights Reserved.
* *
@ -10,6 +10,7 @@
#ifndef UCB1200_H #ifndef UCB1200_H
#define UCB1200_H #define UCB1200_H
#include <linux/mfd/mcp.h>
#define UCB_IO_DATA 0x00 #define UCB_IO_DATA 0x00
#define UCB_IO_DIR 0x01 #define UCB_IO_DIR 0x01
@ -100,7 +101,6 @@
#define UCB_MODE_DYN_VFLAG_ENA (1 << 12) #define UCB_MODE_DYN_VFLAG_ENA (1 << 12)
#define UCB_MODE_AUD_OFF_CAN (1 << 13) #define UCB_MODE_AUD_OFF_CAN (1 << 13)
#include "mcp.h"
struct ucb1x00_irq { struct ucb1x00_irq {
void *devid; void *devid;