Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1657037
| From | Keerthy <j-keerthy@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 8/9] mfd: tps65090: Remove redundant i2c_device_id |
| Date | 2017-06-04 11:30 +0200 |
| Message-ID | <tOA1c-2Ws-13@gated-at.bofh.it> (permalink) |
| References | <tOzRw-2Sl-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
With the introduction of probe_new function the i2c_device_id
is no longer needed. Hence the remove the same and use probe_new
instead of probe.
Signed-off-by: Keerthy <j-keerthy@ti.com>
---
Compile tested.
drivers/mfd/tps65090.c | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c
index d7ec318..200a9c8 100644
--- a/drivers/mfd/tps65090.c
+++ b/drivers/mfd/tps65090.c
@@ -174,8 +174,7 @@ static bool is_volatile_reg(struct device *dev, unsigned int reg)
MODULE_DEVICE_TABLE(of, tps65090_of_match);
#endif
-static int tps65090_i2c_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int tps65090_i2c_probe(struct i2c_client *client)
{
struct tps65090_platform_data *pdata = dev_get_platdata(&client->dev);
int irq_base = 0;
@@ -249,20 +248,13 @@ static int tps65090_i2c_remove(struct i2c_client *client)
return 0;
}
-static const struct i2c_device_id tps65090_id_table[] = {
- { "tps65090", 0 },
- { },
-};
-MODULE_DEVICE_TABLE(i2c, tps65090_id_table);
-
static struct i2c_driver tps65090_driver = {
.driver = {
.name = "tps65090",
.of_match_table = of_match_ptr(tps65090_of_match),
},
- .probe = tps65090_i2c_probe,
+ .probe_new = tps65090_i2c_probe,
.remove = tps65090_i2c_remove,
- .id_table = tps65090_id_table,
};
static int __init tps65090_init(void)
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/9] mfd: Remove redundant i2c_device_id Keerthy <j-keerthy@ti.com> - 2017-06-04 11:20 +0200
[PATCH 3/9] mfd: palmas: Remove redundant i2c_device_id Keerthy <j-keerthy@ti.com> - 2017-06-04 11:30 +0200
[PATCH 5/9] mfd: lp8788: Remove redundant i2c_device_id Keerthy <j-keerthy@ti.com> - 2017-06-04 11:30 +0200
[PATCH 9/9] mfd: tps6586x: Remove redundant i2c_device_id Keerthy <j-keerthy@ti.com> - 2017-06-04 11:30 +0200
[PATCH 7/9] mfd: tps65086: Remove redundant i2c_device_id Keerthy <j-keerthy@ti.com> - 2017-06-04 11:30 +0200
[PATCH 2/9] mfd: tps65218: Remove redundant i2c_device_id Keerthy <j-keerthy@ti.com> - 2017-06-04 11:30 +0200
[PATCH 8/9] mfd: tps65090: Remove redundant i2c_device_id Keerthy <j-keerthy@ti.com> - 2017-06-04 11:30 +0200
[PATCH 6/9] mfd: lp3943: Remove redundant i2c_device_id Keerthy <j-keerthy@ti.com> - 2017-06-04 11:30 +0200
[PATCH 4/9] mfd: lp873x: Remove redundant i2c_device_id Keerthy <j-keerthy@ti.com> - 2017-06-04 11:30 +0200
Re: [PATCH 0/9] mfd: Remove redundant i2c_device_id Lee Jones <lee.jones@linaro.org> - 2017-06-05 12:40 +0200
Re: [PATCH 0/9] mfd: Remove redundant i2c_device_id Keerthy <j-keerthy@ti.com> - 2017-06-05 16:40 +0200
Re: [PATCH 0/9] mfd: Remove redundant i2c_device_id Lee Jones <lee.jones@linaro.org> - 2017-06-06 09:20 +0200
Re: [PATCH 0/9] mfd: Remove redundant i2c_device_id Keerthy <j-keerthy@ti.com> - 2017-06-06 09:40 +0200
Re: [PATCH 0/9] mfd: Remove redundant i2c_device_id Keerthy <j-keerthy@ti.com> - 2017-06-06 09:50 +0200
Re: [PATCH 0/9] mfd: Remove redundant i2c_device_id Tony Lindgren <tony@atomide.com> - 2017-06-06 12:50 +0200
Re: [PATCH 0/9] mfd: Remove redundant i2c_device_id Keerthy <j-keerthy@ti.com> - 2017-06-06 13:10 +0200
csiph-web