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
parent
481840aea5
commit
9fe156817e
|
@ -556,6 +556,7 @@ static int mma8451_resume(struct device *dev)
|
||||||
|
|
||||||
static const struct i2c_device_id mma8451_id[] = {
|
static const struct i2c_device_id mma8451_id[] = {
|
||||||
{"mma8451", 0},
|
{"mma8451", 0},
|
||||||
|
{ /* sentinel */ }
|
||||||
};
|
};
|
||||||
|
|
||||||
MODULE_DEVICE_TABLE(i2c, mma8451_id);
|
MODULE_DEVICE_TABLE(i2c, mma8451_id);
|
||||||
|
|
Loading…
Reference in New Issue