aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBalaji Rao <balajirrao@openmoko.org>2008-11-20 19:46:51 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-20 19:46:51 +0000
commit76e92a5722a4b89c39208eec56ea6e80222e8208 (patch)
tree251fe855c5dfc417b330379c7295e98462f2890f /include
parent7e8fd667d1f857fdd7e3b5511869933a72388564 (diff)
pcf50633_introduce_reg_read_functions.patch
Introduces pcf50633_read and pcf50633_write for reading a block of registers. Assumes mutex held by caller.
Diffstat (limited to 'include')
-rw-r--r--include/linux/pcf50633.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/pcf50633.h b/include/linux/pcf50633.h
index 45c9adb4053..4f1a08daa9d 100644
--- a/include/linux/pcf50633.h
+++ b/include/linux/pcf50633.h
@@ -583,6 +583,12 @@ struct pcf50633_data {
/* this is to be provided by the board implementation */
extern const u_int8_t pcf50633_initial_regs[__NUM_PCF50633_REGS];
+int pcf50633_read(struct pcf50633_data *pcf, u_int8_t reg,
+ int nr_regs, u_int8_t *data);
+
+int pcf50633_write(struct pcf50633_data *pcf, u_int8_t reg,
+ int nr_regs, u_int8_t *data);
+
int pcf50633_reg_write(struct pcf50633_data *pcf, u_int8_t reg, u_int8_t val);
u_int8_t pcf50633_reg_read(struct pcf50633_data *pcf, u_int8_t reg);