summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorRobert Collins <rcollins@nvidia.com>2012-08-22 10:32:31 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:38:41 -0700
commit7839cd234ebb2bcf16d6c5ca4278b55c5ddd2900 (patch)
tree744b7913b6d2b252a5172413afac2dadfff734ed /drivers/input/touchscreen
parent618ca350e5bde473a59eaed51021276a15a17c63 (diff)
touch: atmel_mxt_ts: Add dynamic config file name
Change-Id: Iaaf2352159418c25b4377eb1bf164cbc79e03b32 Signed-off-by: Robert Collins <rcollins@nvidia.com> Reviewed-on: http://git-master/r/131490 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Xiaohui Tao <xtao@nvidia.com> Tested-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com> GVS: Gerrit_Virtual_Submit Rebase-Id: Rf2e4fcb399966d18c5a86a66dae5419b90981e6a
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r--drivers/input/touchscreen/atmel_mxt_ts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
index ac5740c4435c..ed35c1df0718 100644
--- a/drivers/input/touchscreen/atmel_mxt_ts.c
+++ b/drivers/input/touchscreen/atmel_mxt_ts.c
@@ -3,6 +3,7 @@
*
* Copyright (C) 2010 Samsung Electronics Co.Ltd
* Copyright (C) 2011 Atmel Corporation
+ * Copyright (C) 2011-2012 NVIDIA Corporation
* Author: Joonyoung Shim <jy0922.shim@samsung.com>
*
* This program is free software; you can redistribute it and/or modify it
@@ -32,7 +33,6 @@
/* Firmware files */
#define MXT_FW_NAME "maxtouch.fw"
-#define MXT_CFG_NAME "maxtouch.cfg"
#define MXT_CFG_MAGIC "OBP_RAW V1"
/* Registers */
@@ -1497,7 +1497,7 @@ static int mxt_check_reg_init(struct mxt_data *data)
int ret;
u8 command_register;
- ret = mxt_download_config(data, MXT_CFG_NAME);
+ ret = mxt_download_config(data, data->pdata->mxt_cfg_name);
if (ret < 0)
return ret;
else if (ret == 0)