summaryrefslogtreecommitdiffstats
path: root/include/i2c/mc34704.h
blob: a3723d72a9251c35d054430d893138daf628c246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (C) 2009 Marc Kleine-Budde <mkl@pengutronix.de>
 * Copyright (C) 2010 Baruch Siach <baruch@tkos.co.il>
 *
 * This file is released under the GPLv2
 *
 * Derived from:
 * - arch-mxc/pmic_external.h --  contains interface of the PMIC protocol driver
 *   Copyright 2008-2009 Freescale Semiconductor, Inc. All Rights Reserved.
 *
 */

#ifndef __I2C_MC34704_H
#define __I2C_MC34704_H

struct mc34704 {
	struct cdev		cdev;
	struct i2c_client	*client;
};

extern struct mc34704 *mc34704_get(void);

extern int mc34704_reg_read(struct mc34704 *mc34704, u8 reg, u8 *val);
extern int mc34704_reg_write(struct mc34704 *mc34704, u8 reg, u8 val);

#endif /* __I2C_MC34704_H */