Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227096
b: refs/heads/master
c: 8b5fce0
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Nov 18, 2010
1 parent da6a0fa commit b2d5f87
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e3f0f0a6c11b049f1be603dcfec82d2a8643f5fd
refs/heads/master: 8b5fce06f8795d9a7f8d1f03f743fc8befa66b3b
19 changes: 12 additions & 7 deletions trunk/drivers/input/touchscreen/qt602240_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -1324,8 +1324,9 @@ static int __devexit qt602240_remove(struct i2c_client *client)
}

#ifdef CONFIG_PM
static int qt602240_suspend(struct i2c_client *client, pm_message_t mesg)
static int qt602240_suspend(struct device *dev)
{
struct i2c_client *client = to_i2c_client(dev);
struct qt602240_data *data = i2c_get_clientdata(client);
struct input_dev *input_dev = data->input_dev;

Expand All @@ -1339,8 +1340,9 @@ static int qt602240_suspend(struct i2c_client *client, pm_message_t mesg)
return 0;
}

static int qt602240_resume(struct i2c_client *client)
static int qt602240_resume(struct device *dev)
{
struct i2c_client *client = to_i2c_client(dev);
struct qt602240_data *data = i2c_get_clientdata(client);
struct input_dev *input_dev = data->input_dev;

Expand All @@ -1359,9 +1361,11 @@ static int qt602240_resume(struct i2c_client *client)

return 0;
}
#else
#define qt602240_suspend NULL
#define qt602240_resume NULL

static const struct dev_pm_ops qt602240_pm_ops = {
.suspend = qt602240_suspend,
.resume = qt602240_resume,
};
#endif

static const struct i2c_device_id qt602240_id[] = {
Expand All @@ -1374,11 +1378,12 @@ static struct i2c_driver qt602240_driver = {
.driver = {
.name = "qt602240_ts",
.owner = THIS_MODULE,
#ifdef CONFIG_PM
.pm = &qt602240_pm_ops,
#endif
},
.probe = qt602240_probe,
.remove = __devexit_p(qt602240_remove),
.suspend = qt602240_suspend,
.resume = qt602240_resume,
.id_table = qt602240_id,
};

Expand Down

0 comments on commit b2d5f87

Please sign in to comment.