aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/stmpe.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-11-18 08:33:01 -0500
committerLee Jones <lee.jones@linaro.org>2014-01-06 04:13:24 -0500
commit6bbb3c4cb203a3c0596b845bd804d6a18dea7683 (patch)
tree2001f244aaa454c48b244be10739a0a509debf75 /drivers/mfd/stmpe.h
parent9e146f43301caa69fca98c8036f11d940e0f29f9 (diff)
mfd: stmicro: Constify struct mfd_cell where possible
As of commit 03e361b25ee8dfb1fd9b890072c23c4aae01c6c7 ("mfd: Stop setting refcounting pointers in original mfd_cell arrays"), the "cell" parameter of mfd_add_devices() is "const" again. Hence make all cell data passed to mfd_add_devices() const where possible. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/stmpe.h')
-rw-r--r--drivers/mfd/stmpe.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/stmpe.h b/drivers/mfd/stmpe.h
index ff2b09ba8797..6639f1b0fef5 100644
--- a/drivers/mfd/stmpe.h
+++ b/drivers/mfd/stmpe.h
@@ -38,7 +38,7 @@ static inline void stmpe_dump_bytes(const char *str, const void *buf,
38 * enable and altfunc callbacks 38 * enable and altfunc callbacks
39 */ 39 */
40struct stmpe_variant_block { 40struct stmpe_variant_block {
41 struct mfd_cell *cell; 41 const struct mfd_cell *cell;
42 int irq; 42 int irq;
43 enum stmpe_block block; 43 enum stmpe_block block;
44}; 44};