mma7660.c (e98bdb3059cbf2b1cd4261e126b08429f64466c3) mma7660.c (f1c088a7696873337ae390739d06165c8b81e6e0)
1/**
2 * Freescale MMA7660FC 3-Axis Accelerometer
3 *
4 * Copyright (c) 2016, Intel Corporation.
5 *
6 * This file is subject to the terms and conditions of version 2 of
7 * the GNU General Public License. See the file COPYING in the main
8 * directory of this archive for more details.

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

248#endif
249
250static const struct i2c_device_id mma7660_i2c_id[] = {
251 {"mma7660", 0},
252 {}
253};
254MODULE_DEVICE_TABLE(i2c, mma7660_i2c_id);
255
1/**
2 * Freescale MMA7660FC 3-Axis Accelerometer
3 *
4 * Copyright (c) 2016, Intel Corporation.
5 *
6 * This file is subject to the terms and conditions of version 2 of
7 * the GNU General Public License. See the file COPYING in the main
8 * directory of this archive for more details.

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

248#endif
249
250static const struct i2c_device_id mma7660_i2c_id[] = {
251 {"mma7660", 0},
252 {}
253};
254MODULE_DEVICE_TABLE(i2c, mma7660_i2c_id);
255
256static const struct of_device_id mma7660_of_match[] = {
257 { .compatible = "fsl,mma7660" },
258 { }
259};
260MODULE_DEVICE_TABLE(of, mma7660_of_match);
261
256static const struct acpi_device_id mma7660_acpi_id[] = {
257 {"MMA7660", 0},
258 {}
259};
260
261MODULE_DEVICE_TABLE(acpi, mma7660_acpi_id);
262
263static struct i2c_driver mma7660_driver = {
264 .driver = {
265 .name = "mma7660",
266 .pm = MMA7660_PM_OPS,
262static const struct acpi_device_id mma7660_acpi_id[] = {
263 {"MMA7660", 0},
264 {}
265};
266
267MODULE_DEVICE_TABLE(acpi, mma7660_acpi_id);
268
269static struct i2c_driver mma7660_driver = {
270 .driver = {
271 .name = "mma7660",
272 .pm = MMA7660_PM_OPS,
273 .of_match_table = mma7660_of_match,
267 .acpi_match_table = ACPI_PTR(mma7660_acpi_id),
268 },
269 .probe = mma7660_probe,
270 .remove = mma7660_remove,
271 .id_table = mma7660_i2c_id,
272};
273
274module_i2c_driver(mma7660_driver);
275
276MODULE_AUTHOR("Constantin Musca <constantin.musca@intel.com>");
277MODULE_DESCRIPTION("Freescale MMA7660FC 3-Axis Accelerometer driver");
278MODULE_LICENSE("GPL v2");
274 .acpi_match_table = ACPI_PTR(mma7660_acpi_id),
275 },
276 .probe = mma7660_probe,
277 .remove = mma7660_remove,
278 .id_table = mma7660_i2c_id,
279};
280
281module_i2c_driver(mma7660_driver);
282
283MODULE_AUTHOR("Constantin Musca <constantin.musca@intel.com>");
284MODULE_DESCRIPTION("Freescale MMA7660FC 3-Axis Accelerometer driver");
285MODULE_LICENSE("GPL v2");