summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorJulien Olivain <julien.olivain@nxp.com>2016-11-16 09:20:25 +0100
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:27:40 +0800
commitfb312641081c1f65f528922b4e4db25420a199fe (patch)
tree2650eaa416b0bc1e07fbd1259989cf78006aecd4 /drivers/hwmon
parentd578ca690579d133cce5be7411f26f01c096f8b7 (diff)
MLK-13472: hwmon: mxc_mma8451: add empty sentinel entry at the end of i2c_device_id table
This is fixing the build when the driver is enabled as a module, when CONFIG_MXC_MMA8451=m Signed-off-by: Julien Olivain <julien.olivain@nxp.com>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/mxc_mma8451.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/mxc_mma8451.c b/drivers/hwmon/mxc_mma8451.c
index f20fb8e5ef78..9d6c53927757 100644
--- a/drivers/hwmon/mxc_mma8451.c
+++ b/drivers/hwmon/mxc_mma8451.c
@@ -556,6 +556,7 @@ static int mma8451_resume(struct device *dev)
static const struct i2c_device_id mma8451_id[] = {
{"mma8451", 0},
+ { /* sentinel */ }
};
MODULE_DEVICE_TABLE(i2c, mma8451_id);