aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/misc/adxl34x-i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/misc/adxl34x-i2c.c')
-rw-r--r--drivers/input/misc/adxl34x-i2c.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/input/misc/adxl34x-i2c.c b/drivers/input/misc/adxl34x-i2c.c
index 76194b58bd0b..0779724af7e7 100644
--- a/drivers/input/misc/adxl34x-i2c.c
+++ b/drivers/input/misc/adxl34x-i2c.c
@@ -58,14 +58,14 @@ static int adxl34x_i2c_read_block(struct device *dev,
58 return 0; 58 return 0;
59} 59}
60 60
61static const struct adxl34x_bus_ops adx134x_smbus_bops = { 61static const struct adxl34x_bus_ops adxl34x_smbus_bops = {
62 .bustype = BUS_I2C, 62 .bustype = BUS_I2C,
63 .write = adxl34x_smbus_write, 63 .write = adxl34x_smbus_write,
64 .read = adxl34x_smbus_read, 64 .read = adxl34x_smbus_read,
65 .read_block = adxl34x_smbus_read_block, 65 .read_block = adxl34x_smbus_read_block,
66}; 66};
67 67
68static const struct adxl34x_bus_ops adx134x_i2c_bops = { 68static const struct adxl34x_bus_ops adxl34x_i2c_bops = {
69 .bustype = BUS_I2C, 69 .bustype = BUS_I2C,
70 .write = adxl34x_smbus_write, 70 .write = adxl34x_smbus_write,
71 .read = adxl34x_smbus_read, 71 .read = adxl34x_smbus_read,
@@ -88,7 +88,7 @@ static int __devinit adxl34x_i2c_probe(struct i2c_client *client,
88 ac = adxl34x_probe(&client->dev, client->irq, false, 88 ac = adxl34x_probe(&client->dev, client->irq, false,
89 i2c_check_functionality(client->adapter, 89 i2c_check_functionality(client->adapter,
90 I2C_FUNC_SMBUS_READ_I2C_BLOCK) ? 90 I2C_FUNC_SMBUS_READ_I2C_BLOCK) ?
91 &adx134x_smbus_bops : &adx134x_i2c_bops); 91 &adxl34x_smbus_bops : &adxl34x_i2c_bops);
92 if (IS_ERR(ac)) 92 if (IS_ERR(ac))
93 return PTR_ERR(ac); 93 return PTR_ERR(ac);
94 94
@@ -105,26 +105,26 @@ static int __devexit adxl34x_i2c_remove(struct i2c_client *client)
105} 105}
106 106
107#ifdef CONFIG_PM 107#ifdef CONFIG_PM
108static int adxl34x_suspend(struct i2c_client *client, pm_message_t message) 108static int adxl34x_i2c_suspend(struct i2c_client *client, pm_message_t message)
109{ 109{
110 struct adxl34x *ac = i2c_get_clientdata(client); 110 struct adxl34x *ac = i2c_get_clientdata(client);
111 111
112 adxl34x_disable(ac); 112 adxl34x_suspend(ac);
113 113
114 return 0; 114 return 0;
115} 115}
116 116
117static int adxl34x_resume(struct i2c_client *client) 117static int adxl34x_i2c_resume(struct i2c_client *client)
118{ 118{
119 struct adxl34x *ac = i2c_get_clientdata(client); 119 struct adxl34x *ac = i2c_get_clientdata(client);
120 120
121 adxl34x_enable(ac); 121 adxl34x_resume(ac);
122 122
123 return 0; 123 return 0;
124} 124}
125#else 125#else
126# define adxl34x_suspend NULL 126# define adxl34x_i2c_suspend NULL
127# define adxl34x_resume NULL 127# define adxl34x_i2c_resume NULL
128#endif 128#endif
129 129
130static const struct i2c_device_id adxl34x_id[] = { 130static const struct i2c_device_id adxl34x_id[] = {
@@ -141,8 +141,8 @@ static struct i2c_driver adxl34x_driver = {
141 }, 141 },
142 .probe = adxl34x_i2c_probe, 142 .probe = adxl34x_i2c_probe,
143 .remove = __devexit_p(adxl34x_i2c_remove), 143 .remove = __devexit_p(adxl34x_i2c_remove),
144 .suspend = adxl34x_suspend, 144 .suspend = adxl34x_i2c_suspend,
145 .resume = adxl34x_resume, 145 .resume = adxl34x_i2c_resume,
146 .id_table = adxl34x_id, 146 .id_table = adxl34x_id,
147}; 147};
148 148