diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/iio/light/max44009.c | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
Diffstat (limited to 'drivers/iio/light/max44009.c')
| -rw-r--r-- | drivers/iio/light/max44009.c | 13 | 
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/iio/light/max44009.c b/drivers/iio/light/max44009.c index 3dadace09fe2..176dcad6e8e8 100644 --- a/drivers/iio/light/max44009.c +++ b/drivers/iio/light/max44009.c @@ -527,6 +527,12 @@ static int max44009_probe(struct i2c_client *client)  	return devm_iio_device_register(&client->dev, indio_dev);  } +static const struct of_device_id max44009_of_match[] = { +	{ .compatible = "maxim,max44009" }, +	{ } +}; +MODULE_DEVICE_TABLE(of, max44009_of_match); +  static const struct i2c_device_id max44009_id[] = {  	{ "max44009", 0 },  	{ } @@ -536,18 +542,13 @@ MODULE_DEVICE_TABLE(i2c, max44009_id);  static struct i2c_driver max44009_driver = {  	.driver = {  		.name = MAX44009_DRV_NAME, +		.of_match_table = max44009_of_match,  	},  	.probe_new = max44009_probe,  	.id_table = max44009_id,  };  module_i2c_driver(max44009_driver); -static const struct of_device_id max44009_of_match[] = { -	{ .compatible = "maxim,max44009" }, -	{ } -}; -MODULE_DEVICE_TABLE(of, max44009_of_match); -  MODULE_AUTHOR("Robert Eshleman <[email protected]>");  MODULE_LICENSE("GPL v2");  MODULE_DESCRIPTION("MAX44009 ambient light sensor driver");  |