aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/platform/chrome/cros_ec_lpc.c3
-rw-r--r--drivers/platform/chrome/cros_ec_lpc_mec.c3
-rw-r--r--drivers/platform/chrome/cros_ec_lpc_mec.h (renamed from include/linux/mfd/cros_ec_lpc_mec.h)6
-rw-r--r--drivers/platform/chrome/cros_ec_lpc_reg.c3
-rw-r--r--drivers/platform/chrome/cros_ec_lpc_reg.h (renamed from include/linux/mfd/cros_ec_lpc_reg.h)6
5 files changed, 12 insertions, 9 deletions
diff --git a/drivers/platform/chrome/cros_ec_lpc.c b/drivers/platform/chrome/cros_ec_lpc.c
index 31c8b8c49e45..7ec8789bf161 100644
--- a/drivers/platform/chrome/cros_ec_lpc.c
+++ b/drivers/platform/chrome/cros_ec_lpc.c
@@ -27,12 +27,13 @@
27#include <linux/io.h> 27#include <linux/io.h>
28#include <linux/mfd/cros_ec.h> 28#include <linux/mfd/cros_ec.h>
29#include <linux/mfd/cros_ec_commands.h> 29#include <linux/mfd/cros_ec_commands.h>
30#include <linux/mfd/cros_ec_lpc_reg.h>
31#include <linux/module.h> 30#include <linux/module.h>
32#include <linux/platform_device.h> 31#include <linux/platform_device.h>
33#include <linux/printk.h> 32#include <linux/printk.h>
34#include <linux/suspend.h> 33#include <linux/suspend.h>
35 34
35#include "cros_ec_lpc_reg.h"
36
36#define DRV_NAME "cros_ec_lpcs" 37#define DRV_NAME "cros_ec_lpcs"
37#define ACPI_DRV_NAME "GOOG0004" 38#define ACPI_DRV_NAME "GOOG0004"
38 39
diff --git a/drivers/platform/chrome/cros_ec_lpc_mec.c b/drivers/platform/chrome/cros_ec_lpc_mec.c
index 2eda2c2fc210..c4edfa83e493 100644
--- a/drivers/platform/chrome/cros_ec_lpc_mec.c
+++ b/drivers/platform/chrome/cros_ec_lpc_mec.c
@@ -24,10 +24,11 @@
24#include <linux/delay.h> 24#include <linux/delay.h>
25#include <linux/io.h> 25#include <linux/io.h>
26#include <linux/mfd/cros_ec_commands.h> 26#include <linux/mfd/cros_ec_commands.h>
27#include <linux/mfd/cros_ec_lpc_mec.h>
28#include <linux/mutex.h> 27#include <linux/mutex.h>
29#include <linux/types.h> 28#include <linux/types.h>
30 29
30#include "cros_ec_lpc_mec.h"
31
31/* 32/*
32 * This mutex must be held while accessing the EMI unit. We can't rely on the 33 * This mutex must be held while accessing the EMI unit. We can't rely on the
33 * EC mutex because memmap data may be accessed without it being held. 34 * EC mutex because memmap data may be accessed without it being held.
diff --git a/include/linux/mfd/cros_ec_lpc_mec.h b/drivers/platform/chrome/cros_ec_lpc_mec.h
index 176496ddc66c..105068c0e919 100644
--- a/include/linux/mfd/cros_ec_lpc_mec.h
+++ b/drivers/platform/chrome/cros_ec_lpc_mec.h
@@ -21,8 +21,8 @@
21 * expensive. 21 * expensive.
22 */ 22 */
23 23
24#ifndef __LINUX_MFD_CROS_EC_MEC_H 24#ifndef __CROS_EC_LPC_MEC_H
25#define __LINUX_MFD_CROS_EC_MEC_H 25#define __CROS_EC_LPC_MEC_H
26 26
27#include <linux/mfd/cros_ec_commands.h> 27#include <linux/mfd/cros_ec_commands.h>
28 28
@@ -87,4 +87,4 @@ void cros_ec_lpc_mec_destroy(void);
87u8 cros_ec_lpc_io_bytes_mec(enum cros_ec_lpc_mec_io_type io_type, 87u8 cros_ec_lpc_io_bytes_mec(enum cros_ec_lpc_mec_io_type io_type,
88 unsigned int offset, unsigned int length, u8 *buf); 88 unsigned int offset, unsigned int length, u8 *buf);
89 89
90#endif /* __LINUX_MFD_CROS_EC_MEC_H */ 90#endif /* __CROS_EC_LPC_MEC_H */
diff --git a/drivers/platform/chrome/cros_ec_lpc_reg.c b/drivers/platform/chrome/cros_ec_lpc_reg.c
index dcc7a3e30604..fc23d535c404 100644
--- a/drivers/platform/chrome/cros_ec_lpc_reg.c
+++ b/drivers/platform/chrome/cros_ec_lpc_reg.c
@@ -24,7 +24,8 @@
24#include <linux/io.h> 24#include <linux/io.h>
25#include <linux/mfd/cros_ec.h> 25#include <linux/mfd/cros_ec.h>
26#include <linux/mfd/cros_ec_commands.h> 26#include <linux/mfd/cros_ec_commands.h>
27#include <linux/mfd/cros_ec_lpc_mec.h> 27
28#include "cros_ec_lpc_mec.h"
28 29
29static u8 lpc_read_bytes(unsigned int offset, unsigned int length, u8 *dest) 30static u8 lpc_read_bytes(unsigned int offset, unsigned int length, u8 *dest)
30{ 31{
diff --git a/include/linux/mfd/cros_ec_lpc_reg.h b/drivers/platform/chrome/cros_ec_lpc_reg.h
index 5560bef63c2b..1c12c38b306a 100644
--- a/include/linux/mfd/cros_ec_lpc_reg.h
+++ b/drivers/platform/chrome/cros_ec_lpc_reg.h
@@ -21,8 +21,8 @@
21 * expensive. 21 * expensive.
22 */ 22 */
23 23
24#ifndef __LINUX_MFD_CROS_EC_REG_H 24#ifndef __CROS_EC_LPC_REG_H
25#define __LINUX_MFD_CROS_EC_REG_H 25#define __CROS_EC_LPC_REG_H
26 26
27/** 27/**
28 * cros_ec_lpc_read_bytes - Read bytes from a given LPC-mapped address. 28 * cros_ec_lpc_read_bytes - Read bytes from a given LPC-mapped address.
@@ -58,4 +58,4 @@ void cros_ec_lpc_reg_init(void);
58 */ 58 */
59void cros_ec_lpc_reg_destroy(void); 59void cros_ec_lpc_reg_destroy(void);
60 60
61#endif /* __LINUX_MFD_CROS_EC_REG_H */ 61#endif /* __CROS_EC_LPC_REG_H */