diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2008-09-24 17:36:23 -0400 |
---|---|---|
committer | Samuel Ortiz <samuel@sortiz.org> | 2008-10-19 16:54:09 -0400 |
commit | 1c1b6ffce5737d764cc474b9bd6677bb9a344094 (patch) | |
tree | b637110fe6282769104b72d08b3864ed1538bf96 /include/linux | |
parent | 80e74a805f0a6662b9b8de519439afd06ac35427 (diff) |
mfd: provide and use setup hook for tc6393xb
Instead of using bitfields for initial gpio setup,
provide generic setup/teardown hooks that can be used
to set the gpio states, register child devices, etc.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mfd/tc6393xb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mfd/tc6393xb.h b/include/linux/mfd/tc6393xb.h index fec7b3f7a81f..1fa820646d98 100644 --- a/include/linux/mfd/tc6393xb.h +++ b/include/linux/mfd/tc6393xb.h | |||
@@ -21,8 +21,6 @@ | |||
21 | struct tc6393xb_platform_data { | 21 | struct tc6393xb_platform_data { |
22 | u16 scr_pll2cr; /* PLL2 Control */ | 22 | u16 scr_pll2cr; /* PLL2 Control */ |
23 | u16 scr_gper; /* GP Enable */ | 23 | u16 scr_gper; /* GP Enable */ |
24 | u32 scr_gpo_doecr; /* GPO Data OE Control */ | ||
25 | u32 scr_gpo_dsr; /* GPO Data Set */ | ||
26 | 24 | ||
27 | int (*enable)(struct platform_device *dev); | 25 | int (*enable)(struct platform_device *dev); |
28 | int (*disable)(struct platform_device *dev); | 26 | int (*disable)(struct platform_device *dev); |
@@ -31,6 +29,8 @@ struct tc6393xb_platform_data { | |||
31 | 29 | ||
32 | int irq_base; /* base for subdevice irqs */ | 30 | int irq_base; /* base for subdevice irqs */ |
33 | int gpio_base; | 31 | int gpio_base; |
32 | int (*setup)(struct platform_device *dev); | ||
33 | void (*teardown)(struct platform_device *dev); | ||
34 | 34 | ||
35 | struct tmio_nand_data *nand_data; | 35 | struct tmio_nand_data *nand_data; |
36 | }; | 36 | }; |