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

Commit 4ee19524 authored by Olof Johansson's avatar Olof Johansson Committed by Greg Kroah-Hartman
Browse files

staging:iio: isl29018: add of_match table for device-tree probing



As simple as can be right now; just one ID and no custom properties to parse.

Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
Acked-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cba2c993
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -592,11 +592,18 @@ static const struct i2c_device_id isl29018_id[] = {

MODULE_DEVICE_TABLE(i2c, isl29018_id);

static const struct of_device_id isl29018_of_match[] = {
	{ .compatible = "invn,isl29018", },
	{ },
};
MODULE_DEVICE_TABLE(of, isl29018_of_match);

static struct i2c_driver isl29018_driver = {
	.class	= I2C_CLASS_HWMON,
	.driver	 = {
			.name = "isl29018",
			.owner = THIS_MODULE,
			.of_match_table = isl29018_of_match,
		    },
	.probe	 = isl29018_probe,
	.remove	 = __devexit_p(isl29018_remove),