summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorVenkata Prahlad Valluru <vvalluru@codeaurora.org>2018-04-03 11:55:52 +0530
committerVenkata Prahlad Valluru <vvalluru@codeaurora.org>2018-04-03 11:55:52 +0530
commit4ff082fbfabcde558c0bb29e0a665cddd217ebb6 (patch)
tree68dc51aec99409562ca98764e52cb3366fb111fd /drivers/input
parent225f40883b25079e415cf4e4effa8dce3c2dffda (diff)
input: touchscreen: Fix uninitialized variable usage in Atmel driver
Initialize variables that are passed by reference, so that they can be used safely afterwards, irrespective of the called function actions. Change-Id: Ib7fa26b0682c719cabdb9cb94f206a93e3eaaf63 Signed-off-by: Venkata Prahlad Valluru <vvalluru@codeaurora.org>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/atmel_maxtouch_ts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/atmel_maxtouch_ts.c b/drivers/input/touchscreen/atmel_maxtouch_ts.c
index 99a4b40e432e..423a055bbec6 100644
--- a/drivers/input/touchscreen/atmel_maxtouch_ts.c
+++ b/drivers/input/touchscreen/atmel_maxtouch_ts.c
@@ -1627,7 +1627,8 @@ static int mxt_update_t100_resolution(struct mxt_data *data)
u16 range_y = 0;
u16 temp;
u8 cfg = 0;
- u8 tchaux, aux;
+ u8 tchaux = 0;
+ u8 aux;
bool update = false;
object = mxt_get_object(data, MXT_TOUCH_MULTITOUCHSCREEN_T100);