diff options
Diffstat (limited to 'drivers/gpio/gpio-stmpe.c')
-rw-r--r-- | drivers/gpio/gpio-stmpe.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/drivers/gpio/gpio-stmpe.c b/drivers/gpio/gpio-stmpe.c index e6e5cca624a7..e3d048e65339 100644 --- a/drivers/gpio/gpio-stmpe.c +++ b/drivers/gpio/gpio-stmpe.c | |||
@@ -273,15 +273,21 @@ static void stmpe_dbg_show_one(struct seq_file *s, | |||
273 | u8 fall_reg; | 273 | u8 fall_reg; |
274 | u8 irqen_reg; | 274 | u8 irqen_reg; |
275 | 275 | ||
276 | char *edge_det_values[] = {"edge-inactive", | 276 | static const char * const edge_det_values[] = { |
277 | "edge-asserted", | 277 | "edge-inactive", |
278 | "not-supported"}; | 278 | "edge-asserted", |
279 | char *rise_values[] = {"no-rising-edge-detection", | 279 | "not-supported" |
280 | "rising-edge-detection", | 280 | }; |
281 | "not-supported"}; | 281 | static const char * const rise_values[] = { |
282 | char *fall_values[] = {"no-falling-edge-detection", | 282 | "no-rising-edge-detection", |
283 | "falling-edge-detection", | 283 | "rising-edge-detection", |
284 | "not-supported"}; | 284 | "not-supported" |
285 | }; | ||
286 | static const char * const fall_values[] = { | ||
287 | "no-falling-edge-detection", | ||
288 | "falling-edge-detection", | ||
289 | "not-supported" | ||
290 | }; | ||
285 | #define NOT_SUPPORTED_IDX 2 | 291 | #define NOT_SUPPORTED_IDX 2 |
286 | u8 edge_det = NOT_SUPPORTED_IDX; | 292 | u8 edge_det = NOT_SUPPORTED_IDX; |
287 | u8 rise = NOT_SUPPORTED_IDX; | 293 | u8 rise = NOT_SUPPORTED_IDX; |