aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/tc6393xb.h
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2008-09-24 17:46:10 -0400
committerSamuel Ortiz <samuel@sortiz.org>2008-10-19 16:54:10 -0400
commitf98a0bd0e4b77b12e49ce01f4c9f04503931c291 (patch)
tree6197077b24c880eb79d7d2864b60372c358df1b0 /include/linux/mfd/tc6393xb.h
parent1c1b6ffce5737d764cc474b9bd6677bb9a344094 (diff)
mfd: do tcb6393xb state restore on resume only if requested
As requested by Ian make state restore only if it's requested by platform data: some platforms do correctly save the state of the chip during suspend/resume, but some (like tosa) incorrectly power off the chip at suspend, so the driver supports restoring some bits of the tc6393xb state (not full, merely enough to support resume on tosa). With this patch this code is disabled by default. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Acked-by: Ian Molton <spyro@f2s.com> Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
Diffstat (limited to 'include/linux/mfd/tc6393xb.h')
-rw-r--r--include/linux/mfd/tc6393xb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mfd/tc6393xb.h b/include/linux/mfd/tc6393xb.h
index 1fa820646d98..3ce10ae0f397 100644
--- a/include/linux/mfd/tc6393xb.h
+++ b/include/linux/mfd/tc6393xb.h
@@ -33,6 +33,10 @@ struct tc6393xb_platform_data {
33 void (*teardown)(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
37 unsigned resume_restore : 1; /* make special actions
38 to preserve the state
39 on suspend/resume */
36}; 40};
37 41
38/* 42/*