si7020.c (d1208404dd477c142680437137c9996b95bfd508) si7020.c (920dad0ce3f8893fa41a630435da44b4b719bdcb)
1/*
2 * si7020.c - Silicon Labs Si7013/20/21 Relative Humidity and Temp Sensors
3 * Copyright (c) 2013,2014 Uplogix, Inc.
4 * David Barksdale <dbarksdale@uplogix.com>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.

--- 135 unchanged lines hidden (view full) ---

144 indio_dev->channels = si7020_channels;
145 indio_dev->num_channels = ARRAY_SIZE(si7020_channels);
146
147 return devm_iio_device_register(&client->dev, indio_dev);
148}
149
150static const struct i2c_device_id si7020_id[] = {
151 { "si7020", 0 },
1/*
2 * si7020.c - Silicon Labs Si7013/20/21 Relative Humidity and Temp Sensors
3 * Copyright (c) 2013,2014 Uplogix, Inc.
4 * David Barksdale <dbarksdale@uplogix.com>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.

--- 135 unchanged lines hidden (view full) ---

144 indio_dev->channels = si7020_channels;
145 indio_dev->num_channels = ARRAY_SIZE(si7020_channels);
146
147 return devm_iio_device_register(&client->dev, indio_dev);
148}
149
150static const struct i2c_device_id si7020_id[] = {
151 { "si7020", 0 },
152 { "th06", 0 },
152 { }
153};
154MODULE_DEVICE_TABLE(i2c, si7020_id);
155
156static struct i2c_driver si7020_driver = {
157 .driver.name = "si7020",
158 .probe = si7020_probe,
159 .id_table = si7020_id,
160};
161
162module_i2c_driver(si7020_driver);
163MODULE_DESCRIPTION("Silicon Labs Si7013/20/21 Relative Humidity and Temperature Sensors");
164MODULE_AUTHOR("David Barksdale <dbarksdale@uplogix.com>");
165MODULE_LICENSE("GPL");
153 { }
154};
155MODULE_DEVICE_TABLE(i2c, si7020_id);
156
157static struct i2c_driver si7020_driver = {
158 .driver.name = "si7020",
159 .probe = si7020_probe,
160 .id_table = si7020_id,
161};
162
163module_i2c_driver(si7020_driver);
164MODULE_DESCRIPTION("Silicon Labs Si7013/20/21 Relative Humidity and Temperature Sensors");
165MODULE_AUTHOR("David Barksdale <dbarksdale@uplogix.com>");
166MODULE_LICENSE("GPL");