Files
kernel-tenderloin-3.0/include/linux/wpce775x.h
Bryan Huntsman 3f2bc4d6eb Initial Contribution
msm-2.6.38: tag AU_LINUX_ANDROID_GINGERBREAD.02.03.04.00.142

Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
2011-10-03 09:57:10 -07:00

31 lines
999 B
C

/* Quanta EC driver for the Winbond Embedded Controller
*
* Copyright (C) 2009 Quanta Computer Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef WPCE775X_DRV_H
#define WPCE775X_DRV_H
#include <linux/i2c.h>
struct i2c_client *wpce_get_i2c_client(void);
int wpce_smbus_write_word_data(u8 command, u16 value);
struct i2c_client *wpce_get_i2c_client(void);
void wpce_poweroff(void);
void wpce_restart(void);
int wpce_i2c_transfer(struct i2c_msg *msg);
int wpce_smbus_write_word_data(u8 command, u16 value);
int wpce_smbus_write_byte_data(u8 command, u8 value);
#endif