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

Commit f4c6e06d authored by Stephen Boyd's avatar Stephen Boyd Committed by David S. Miller
Browse files

net: ks8851: Add of match table



Users are currently just providing "ks8851" as the compatible for
this driver in device tree. Add a compatible string that provides
the vendor name along with the device name to be more explicit.

Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 73fdeb82
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -1603,9 +1603,15 @@ static int ks8851_remove(struct spi_device *spi)
	return 0;
	return 0;
}
}


static const struct of_device_id ks8851_match_table[] = {
	{ .compatible = "micrel,ks8851" },
	{ }
};

static struct spi_driver ks8851_driver = {
static struct spi_driver ks8851_driver = {
	.driver = {
	.driver = {
		.name = "ks8851",
		.name = "ks8851",
		.of_match_table = ks8851_match_table,
		.owner = THIS_MODULE,
		.owner = THIS_MODULE,
		.pm = &ks8851_pm_ops,
		.pm = &ks8851_pm_ops,
	},
	},