Commit bb82067a authored by Stephen Kitt's avatar Stephen Kitt Committed by Krzysztof Kozlowski

ARM: s3c64xx: use simple i2c probe function

The i2c probe functions here don't use the id information provided in
their second argument, so the single-parameter i2c probe function
("probe_new") can be used instead.

This avoids scanning the identifier tables during probes.
Signed-off-by: default avatarStephen Kitt <steve@sk2.org>
Acked-by: default avatarWolfram Sang <wsa@kernel.org>
Reviewed-by: default avatarLuca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent 351367bb
...@@ -378,8 +378,7 @@ static const struct { ...@@ -378,8 +378,7 @@ static const struct {
.i2c_devs = wm2200_i2c, .num_i2c_devs = ARRAY_SIZE(wm2200_i2c) }, .i2c_devs = wm2200_i2c, .num_i2c_devs = ARRAY_SIZE(wm2200_i2c) },
}; };
static int wlf_gf_module_probe(struct i2c_client *i2c, static int wlf_gf_module_probe(struct i2c_client *i2c)
const struct i2c_device_id *i2c_id)
{ {
int ret, i, j, id, rev; int ret, i, j, id, rev;
...@@ -432,7 +431,7 @@ static struct i2c_driver wlf_gf_module_driver = { ...@@ -432,7 +431,7 @@ static struct i2c_driver wlf_gf_module_driver = {
.driver = { .driver = {
.name = "wlf-gf-module" .name = "wlf-gf-module"
}, },
.probe = wlf_gf_module_probe, .probe_new = wlf_gf_module_probe,
.id_table = wlf_gf_module_id, .id_table = wlf_gf_module_id,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment