static DEFINE_SIMPLE_DEV_PM_OPS(sx9324_pm_ops, sx9324_suspend, sx9324_resume);
static const struct acpi_device_id sx9324_acpi_match[] = {
- { "STH9324", SX9324_WHOAMI_VALUE },
+ { .id = "STH9324" },
{ }
};
MODULE_DEVICE_TABLE(acpi, sx9324_acpi_match);
static const struct of_device_id sx9324_of_match[] = {
- { .compatible = "semtech,sx9324", (void *)SX9324_WHOAMI_VALUE },
+ { .compatible = "semtech,sx9324" },
{ }
};
MODULE_DEVICE_TABLE(of, sx9324_of_match);
static const struct i2c_device_id sx9324_id[] = {
- { "sx9324", SX9324_WHOAMI_VALUE },
+ { .name = "sx9324" },
{ }
};
MODULE_DEVICE_TABLE(i2c, sx9324_id);