These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / iio / magnetometer / st_magn_i2c.c
index 92e5c15..8aa37af 100644 (file)
 
 #ifdef CONFIG_OF
 static const struct of_device_id st_magn_of_match[] = {
+       {
+               .compatible = "st,lsm303dlh-magn",
+               .data = LSM303DLH_MAGN_DEV_NAME,
+       },
        {
                .compatible = "st,lsm303dlhc-magn",
                .data = LSM303DLHC_MAGN_DEV_NAME,
@@ -32,6 +36,10 @@ static const struct of_device_id st_magn_of_match[] = {
                .compatible = "st,lis3mdl-magn",
                .data = LIS3MDL_MAGN_DEV_NAME,
        },
+       {
+               .compatible = "st,lsm303agr-magn",
+               .data = LSM303AGR_MAGN_DEV_NAME,
+       },
        {},
 };
 MODULE_DEVICE_TABLE(of, st_magn_of_match);
@@ -71,16 +79,17 @@ static int st_magn_i2c_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id st_magn_id_table[] = {
+       { LSM303DLH_MAGN_DEV_NAME },
        { LSM303DLHC_MAGN_DEV_NAME },
        { LSM303DLM_MAGN_DEV_NAME },
        { LIS3MDL_MAGN_DEV_NAME },
+       { LSM303AGR_MAGN_DEV_NAME },
        {},
 };
 MODULE_DEVICE_TABLE(i2c, st_magn_id_table);
 
 static struct i2c_driver st_magn_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name = "st-magn-i2c",
                .of_match_table = of_match_ptr(st_magn_of_match),
        },