Skip to content

Commit

Permalink
move drivers/mfd/*.h to include/linux/mfd
Browse files Browse the repository at this point in the history
So drivers like collie_battery driver can use
those files easier.
  • Loading branch information
Thomas Kunze authored and Thomas Kunze committed Nov 27, 2009
1 parent 1d0ad84 commit c8602ed
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion drivers/mfd/mcp-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/mfd/mcp.h>

#include <mach/dma.h>
#include <asm/system.h>

#include "mcp.h"

#define to_mcp(d) container_of(d, struct mcp, attached_device)
#define to_mcp_driver(d) container_of(d, struct mcp_driver, drv)
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/mcp-sa11x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/mfd/mcp.h>

#include <mach/dma.h>
#include <mach/hardware.h>
Expand All @@ -28,7 +29,6 @@

#include <mach/assabet.h>

#include "mcp.h"

struct mcp_sa11x0 {
u32 mccr0;
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/ucb1x00-assabet.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
#include <linux/fs.h>
#include <linux/proc_fs.h>
#include <linux/device.h>
#include <linux/mfd/ucb1x00.h>

#include <mach/dma.h>

#include "ucb1x00.h"

#define UCB1X00_ATTR(name,input)\
static ssize_t name##_show(struct device *dev, struct device_attribute *attr, \
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/ucb1x00-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
#include <linux/interrupt.h>
#include <linux/device.h>
#include <linux/mutex.h>
#include <linux/mfd/ucb1x00.h>

#include <mach/dma.h>
#include <mach/hardware.h>

#include "ucb1x00.h"

static DEFINE_MUTEX(ucb1x00_mutex);
static LIST_HEAD(ucb1x00_drivers);
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/ucb1x00-ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
#include <linux/freezer.h>
#include <linux/slab.h>
#include <linux/kthread.h>
#include <linux/mfd/ucb1x00.h>

#include <mach/dma.h>
#include <mach/collie.h>
#include <asm/mach-types.h>

#include "ucb1x00.h"


struct ucb1x00_ts {
Expand Down
2 changes: 2 additions & 0 deletions drivers/mfd/mcp.h → include/linux/mfd/mcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef MCP_H
#define MCP_H

#include <mach/dma.h>

struct mcp_ops;

struct mcp {
Expand Down
4 changes: 2 additions & 2 deletions drivers/mfd/ucb1x00.h → include/linux/mfd/ucb1x00.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* linux/drivers/mfd/ucb1x00.h
* linux/include/mfd/ucb1x00.h
*
* Copyright (C) 2001 Russell King, All Rights Reserved.
*
Expand All @@ -10,6 +10,7 @@
#ifndef UCB1200_H
#define UCB1200_H

#include <linux/mfd/mcp.h>
#define UCB_IO_DATA 0x00
#define UCB_IO_DIR 0x01

Expand Down Expand Up @@ -100,7 +101,6 @@
#define UCB_MODE_DYN_VFLAG_ENA (1 << 12)
#define UCB_MODE_AUD_OFF_CAN (1 << 13)

#include "mcp.h"

struct ucb1x00_irq {
void *devid;
Expand Down

0 comments on commit c8602ed

Please sign in to comment.