lis3lv02d_i2c.c (80c8ae289266529445fad030fabf5fcf01ccda0d) lis3lv02d_i2c.c (486a5c28c2e7d6a80c393ac7d612b77d80447b84)
1/*
2 * drivers/hwmon/lis3lv02d_i2c.c
3 *
4 * Implements I2C interface for lis3lv02d (STMicroelectronics) accelerometer.
5 * Driver is based on corresponding SPI driver written by Daniel Mack
6 * (lis3lv02d_spi.c (C) 2009 Daniel Mack <daniel@caiaq.de> ).
7 *
8 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).

--- 177 unchanged lines hidden (view full) ---

186 regulator_bulk_free(ARRAY_SIZE(lis3_dev.regulators),
187 lis3_dev.regulators);
188fail:
189 if (pdata && pdata->release_resources)
190 pdata->release_resources();
191 return ret;
192}
193
1/*
2 * drivers/hwmon/lis3lv02d_i2c.c
3 *
4 * Implements I2C interface for lis3lv02d (STMicroelectronics) accelerometer.
5 * Driver is based on corresponding SPI driver written by Daniel Mack
6 * (lis3lv02d_spi.c (C) 2009 Daniel Mack <daniel@caiaq.de> ).
7 *
8 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).

--- 177 unchanged lines hidden (view full) ---

186 regulator_bulk_free(ARRAY_SIZE(lis3_dev.regulators),
187 lis3_dev.regulators);
188fail:
189 if (pdata && pdata->release_resources)
190 pdata->release_resources();
191 return ret;
192}
193
194static int __devexit lis3lv02d_i2c_remove(struct i2c_client *client)
194static int lis3lv02d_i2c_remove(struct i2c_client *client)
195{
196 struct lis3lv02d *lis3 = i2c_get_clientdata(client);
197 struct lis3lv02d_platform_data *pdata = client->dev.platform_data;
198
199 if (pdata && pdata->release_resources)
200 pdata->release_resources();
201
202 lis3lv02d_joystick_disable(lis3);

--- 89 unchanged lines hidden ---
195{
196 struct lis3lv02d *lis3 = i2c_get_clientdata(client);
197 struct lis3lv02d_platform_data *pdata = client->dev.platform_data;
198
199 if (pdata && pdata->release_resources)
200 pdata->release_resources();
201
202 lis3lv02d_joystick_disable(lis3);

--- 89 unchanged lines hidden ---