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>
This commit is contained in:
parent
225f40883b
commit
4ff082fbfa
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue