Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit beb900fc authored by Daniel Mack's avatar Daniel Mack Committed by Greg Kroah-Hartman
Browse files

drivers: misc: ti_dac7512: provide a SPI ID table



This way, the module can be autoloaded by the SPI core.

Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e0646505
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -72,6 +72,12 @@ static int dac7512_remove(struct spi_device *spi)
	return 0;
	return 0;
}
}


static const struct spi_device_id dac7512_id_table[] = {
	{ "dac7512", 0 },
	{ }
};
MODULE_DEVICE_TABLE(spi, dac7512_id_table);

static struct spi_driver dac7512_driver = {
static struct spi_driver dac7512_driver = {
	.driver = {
	.driver = {
		.name	= "dac7512",
		.name	= "dac7512",
@@ -79,6 +85,7 @@ static struct spi_driver dac7512_driver = {
	},
	},
	.probe	= dac7512_probe,
	.probe	= dac7512_probe,
	.remove	= dac7512_remove,
	.remove	= dac7512_remove,
	.id_table = dac7512_id_table,
};
};


module_spi_driver(dac7512_driver);
module_spi_driver(dac7512_driver);