summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2013-03-26 05:20:52 +0000
committerTom Rini <trini@ti.com>2013-05-10 08:25:54 -0400
commitebce10e5b2542e71e1201c85dbe3b6432569a497 (patch)
tree42d9723e2b1d304c0ab80dd9d7d9714c4ad8401f /drivers
parent345ef20465f7b2628b6f6e93b4f2e1d7280f7b7d (diff)
twl6030: move twl6030 register access functions to common header file
twl6030_i2c_[read|write]_u8 can be used else where to access multi-function device such as twl6030, so move the register access functions to the common twl6030.h header file. Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/twl6030.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/power/twl6030.c b/drivers/power/twl6030.c
index 58ad4ad366..d421e6005b 100644
--- a/drivers/power/twl6030.c
+++ b/drivers/power/twl6030.c
@@ -25,17 +25,6 @@
#include <twl6030.h>
-/* Functions to read and write from TWL6030 */
-static inline int twl6030_i2c_write_u8(u8 chip_no, u8 reg, u8 val)
-{
- return i2c_write(chip_no, reg, 1, &val, 1);
-}
-
-static inline int twl6030_i2c_read_u8(u8 chip_no, u8 reg, u8 *val)
-{
- return i2c_read(chip_no, reg, 1, val, 1);
-}
-
static int twl6030_gpadc_read_channel(u8 channel_no)
{
u8 lsb = 0;