Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: light: veml6070: add devicetree support

Register the compatible from the dt-bindings.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20240929-veml6070-cleanup-v1-6-a9350341a646@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Javier Carrasco and committed by
Jonathan Cameron
8a49c373 eba200d5

+7
+7
drivers/iio/light/veml6070.c
··· 192 192 }; 193 193 MODULE_DEVICE_TABLE(i2c, veml6070_id); 194 194 195 + static const struct of_device_id veml6070_of_match[] = { 196 + { .compatible = "vishay,veml6070" }, 197 + { } 198 + }; 199 + MODULE_DEVICE_TABLE(of, veml6070_of_match); 200 + 195 201 static struct i2c_driver veml6070_driver = { 196 202 .driver = { 197 203 .name = VEML6070_DRV_NAME, 204 + .of_match_table = veml6070_of_match, 198 205 }, 199 206 .probe = veml6070_probe, 200 207 .id_table = veml6070_id,