1
0
Fork 0

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>
pull/10/head
Julien Olivain 2016-11-16 09:20:25 +01:00 committed by Jason Liu
parent 481840aea5
commit 9fe156817e
1 changed files with 1 additions and 0 deletions

View File

@ -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);