Commit 6ed5ac50 authored by Srinivas Pandruvada's avatar Srinivas Pandruvada Committed by Jonathan Cameron

iio: imu: inv_mpu6050: ACPI enumeration

Added changes so that the module can be enumerated via ACPI.
Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 450a5ff7
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/iio/iio.h> #include <linux/iio/iio.h>
#include <linux/i2c-mux.h> #include <linux/i2c-mux.h>
#include <linux/acpi.h>
#include "inv_mpu_iio.h" #include "inv_mpu_iio.h"
/* /*
...@@ -875,6 +876,13 @@ static const struct i2c_device_id inv_mpu_id[] = { ...@@ -875,6 +876,13 @@ static const struct i2c_device_id inv_mpu_id[] = {
MODULE_DEVICE_TABLE(i2c, inv_mpu_id); MODULE_DEVICE_TABLE(i2c, inv_mpu_id);
static const struct acpi_device_id inv_acpi_match[] = {
{"INVN6500", 0},
{ },
};
MODULE_DEVICE_TABLE(acpi, inv_acpi_match);
static struct i2c_driver inv_mpu_driver = { static struct i2c_driver inv_mpu_driver = {
.probe = inv_mpu_probe, .probe = inv_mpu_probe,
.remove = inv_mpu_remove, .remove = inv_mpu_remove,
...@@ -883,6 +891,7 @@ static struct i2c_driver inv_mpu_driver = { ...@@ -883,6 +891,7 @@ static struct i2c_driver inv_mpu_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.name = "inv-mpu6050", .name = "inv-mpu6050",
.pm = INV_MPU6050_PMOPS, .pm = INV_MPU6050_PMOPS,
.acpi_match_table = ACPI_PTR(inv_acpi_match),
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment