diff options
author | Jean Delvare <khali@linux-fr.org> | 2008-05-11 20:37:06 +0200 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2008-05-11 20:37:06 +0200 |
commit | ae429083efe996ca2c569c44fd6fea440676dc33 (patch) | |
tree | 85bc4b8d0e0ac034a751b652210f908ec33cc24f /drivers/media/video/tcm825x.c | |
parent | 60b129d7bfa3e20450816983bd52c49bb0bc1c21 (diff) | |
download | linux-ae429083efe996ca2c569c44fd6fea440676dc33.tar.bz2 |
i2c: Convert some more new-style drivers to use module aliasing
Update 3 more new-style i2c drivers to use standard module aliasing
instead of the old driver_name/type driver matching scheme. These
video drivers aren't used yet so converting them is trivial.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/media/video/tcm825x.c')
-rw-r--r-- | drivers/media/video/tcm825x.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/tcm825x.c b/drivers/media/video/tcm825x.c index e57a64605778..8f0100f67a91 100644 --- a/drivers/media/video/tcm825x.c +++ b/drivers/media/video/tcm825x.c @@ -885,12 +885,19 @@ static int __exit tcm825x_remove(struct i2c_client *client) return 0; } +static const struct i2c_device_id tcm825x_id[] = { + { "tcm825x", 0 }, + { } +}; +MODULE_DEVICE_TABLE(i2c, tcm825x_id); + static struct i2c_driver tcm825x_i2c_driver = { .driver = { .name = TCM825X_NAME, }, .probe = tcm825x_probe, .remove = __exit_p(tcm825x_remove), + .id_table = tcm825x_id, }; static struct tcm825x_sensor tcm825x = { |