aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/chips/ds1682.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/chips/ds1682.c')
-rw-r--r--drivers/i2c/chips/ds1682.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/i2c/chips/ds1682.c b/drivers/i2c/chips/ds1682.c
index 3070821030e4..23be4d42cb02 100644
--- a/drivers/i2c/chips/ds1682.c
+++ b/drivers/i2c/chips/ds1682.c
@@ -235,12 +235,19 @@ static int ds1682_remove(struct i2c_client *client)
235 return 0; 235 return 0;
236} 236}
237 237
238static const struct i2c_device_id ds1682_id[] = {
239 { "ds1682", 0 },
240 { }
241};
242MODULE_DEVICE_TABLE(i2c, ds1682_id);
243
238static struct i2c_driver ds1682_driver = { 244static struct i2c_driver ds1682_driver = {
239 .driver = { 245 .driver = {
240 .name = "ds1682", 246 .name = "ds1682",
241 }, 247 },
242 .probe = ds1682_probe, 248 .probe = ds1682_probe,
243 .remove = ds1682_remove, 249 .remove = ds1682_remove,
250 .id_table = ds1682_id,
244}; 251};
245 252
246static int __init ds1682_init(void) 253static int __init ds1682_init(void)