diff options
author | Chen Jian <jackchen@nvidia.com> | 2014-01-20 14:24:55 +0800 |
---|---|---|
committer | Martin Chi <mchi@nvidia.com> | 2014-01-20 17:32:40 -0800 |
commit | 4484fb7a106765f622cb0cbb532a6883c1df452b (patch) | |
tree | a5cb875f144e4e8bcfea437d87d56631eba7316f | |
parent | 3f147956a63973f8e3d2d2707f64b93e1e952477 (diff) |
ARM:tegra:tn7c:Suppress kernel warning message
- Pair enable_irq/disable_irq to remove kernel
warning message.
Change-Id: I7c935e3ad6bdfbf5cc4775ab6977dcb811c168a3
Signed-off-by: Chen Jian <jackchen@nvidia.com>
Reviewed-on: http://git-master/r/357580
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Chi <mchi@nvidia.com>
-rw-r--r-- | drivers/staging/iio/light/ltr659ps.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/iio/light/ltr659ps.c b/drivers/staging/iio/light/ltr659ps.c index e21ab9f2b72d..e80b878466a7 100644 --- a/drivers/staging/iio/light/ltr659ps.c +++ b/drivers/staging/iio/light/ltr659ps.c @@ -1037,6 +1037,9 @@ static void ltr659ps_work_function(struct work_struct *work) struct i2c_client *client = data->client; u8 status; + if (!data->enable) + return; + status = i2c_smbus_read_byte_data(client, LTR659PS_REG_PS_STATUS); if ((status & 0x03) == 0x03) ltr659ps_report_input_event(data); @@ -1284,7 +1287,7 @@ static int __devinit ltr659ps_probe(struct i2c_client *client prox_data->enable = 0; prox_data->init = 0; - /* TODO Correct threshold in right ME */ + prox_data->ps_lowthresh = pdata->default_ps_lowthreshold; prox_data->ps_highthresh = pdata->default_ps_highthreshold; /* default configuration */ |