htu21.c (f26e8817b235d8764363bffcc9cbfc61867371f2) | htu21.c (c43aaa2772732a24a642afc26c030a2bee35aa0c) |
---|---|
1/* 2 * htu21.c - Support for Measurement-Specialties 3 * htu21 temperature & humidity sensor 4 * and humidity part of MS8607 sensor 5 * 6 * Copyright (c) 2014 Measurement-Specialties 7 * 8 * Licensed under the GPL-2. --- 224 unchanged lines hidden (view full) --- 233 234static const struct i2c_device_id htu21_id[] = { 235 {"htu21", HTU21}, 236 {"ms8607-humidity", MS8607}, 237 {} 238}; 239MODULE_DEVICE_TABLE(i2c, htu21_id); 240 | 1/* 2 * htu21.c - Support for Measurement-Specialties 3 * htu21 temperature & humidity sensor 4 * and humidity part of MS8607 sensor 5 * 6 * Copyright (c) 2014 Measurement-Specialties 7 * 8 * Licensed under the GPL-2. --- 224 unchanged lines hidden (view full) --- 233 234static const struct i2c_device_id htu21_id[] = { 235 {"htu21", HTU21}, 236 {"ms8607-humidity", MS8607}, 237 {} 238}; 239MODULE_DEVICE_TABLE(i2c, htu21_id); 240 |
241static const struct of_device_id htu21_of_match[] = { 242 { .compatible = "meas,htu21", }, 243 { .compatible = "meas,ms8607-humidity", }, 244 { }, 245}; 246MODULE_DEVICE_TABLE(of, htu21_of_match); 247 |
|
241static struct i2c_driver htu21_driver = { 242 .probe = htu21_probe, 243 .id_table = htu21_id, 244 .driver = { 245 .name = "htu21", | 248static struct i2c_driver htu21_driver = { 249 .probe = htu21_probe, 250 .id_table = htu21_id, 251 .driver = { 252 .name = "htu21", |
253 .of_match_table = of_match_ptr(htu21_of_match), |
|
246 }, 247}; 248 249module_i2c_driver(htu21_driver); 250 251MODULE_DESCRIPTION("Measurement-Specialties htu21 temperature and humidity driver"); 252MODULE_AUTHOR("William Markezana <william.markezana@meas-spec.com>"); 253MODULE_AUTHOR("Ludovic Tancerel <ludovic.tancerel@maplehightech.com>"); 254MODULE_LICENSE("GPL v2"); | 254 }, 255}; 256 257module_i2c_driver(htu21_driver); 258 259MODULE_DESCRIPTION("Measurement-Specialties htu21 temperature and humidity driver"); 260MODULE_AUTHOR("William Markezana <william.markezana@meas-spec.com>"); 261MODULE_AUTHOR("Ludovic Tancerel <ludovic.tancerel@maplehightech.com>"); 262MODULE_LICENSE("GPL v2"); |