summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorXinyu Chen <b03824@freescale.com>2012-02-10 15:55:59 +0800
committerXinyu Chen <b03824@freescale.com>2012-02-10 16:49:45 +0800
commit5dc82fc25041cedfe1a656ec2e8589e5adfed542 (patch)
tree910f816b61b6fe150c81e5cd6df1cf21dc8a565c /drivers/input
parent3b12ff8975623bbe6c3fa8f46677d87aefabcb89 (diff)
ENGR00174212 isl29023: fix build error of isl29023 light sensor
the platform data and irq set type interface is changed. Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
Diffstat (limited to 'drivers/input')
-rwxr-xr-xdrivers/input/misc/isl29023.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/misc/isl29023.c b/drivers/input/misc/isl29023.c
index 8ea0debc57c1..8a0c16bf9563 100755
--- a/drivers/input/misc/isl29023.c
+++ b/drivers/input/misc/isl29023.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2011-2012 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
@@ -866,7 +866,7 @@ static int __devinit isl29023_probe(struct i2c_client *client,
if (!data)
return -ENOMEM;
- ls_data = (struct mxc_lightsensor_platform_data *)
+ ls_data = (struct fsl_mxc_lightsensor_platform_data *)
(client->dev).platform_data;
data->client = client;
@@ -906,7 +906,7 @@ static int __devinit isl29023_probe(struct i2c_client *client,
goto exit_free_input;
/* set irq type to edge falling */
- set_irq_type(client->irq, IRQF_TRIGGER_FALLING);
+ irq_set_irq_type(client->irq, IRQF_TRIGGER_FALLING);
err = request_irq(client->irq, isl29023_irq_handler, 0,
client->dev.driver->name, data);
if (err < 0) {