Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1657033
| From | Keerthy <j-keerthy@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 5/9] mfd: lp8788: Remove redundant i2c_device_id |
| Date | 2017-06-04 11:30 +0200 |
| Message-ID | <tOA1c-2Ws-3@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/lp8788.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/drivers/mfd/lp8788.c b/drivers/mfd/lp8788.c
index acf6165..a46139d 100644
--- a/drivers/mfd/lp8788.c
+++ b/drivers/mfd/lp8788.c
@@ -170,7 +170,7 @@ static int lp8788_platform_init(struct lp8788 *lp)
.max_register = MAX_LP8788_REGISTERS,
};
-static int lp8788_probe(struct i2c_client *cl, const struct i2c_device_id *id)
+static int lp8788_probe(struct i2c_client *cl)
{
struct lp8788 *lp;
struct lp8788_platform_data *pdata = dev_get_platdata(&cl->dev);
@@ -212,19 +212,12 @@ static int lp8788_remove(struct i2c_client *cl)
return 0;
}
-static const struct i2c_device_id lp8788_ids[] = {
- {"lp8788", 0},
- { }
-};
-MODULE_DEVICE_TABLE(i2c, lp8788_ids);
-
static struct i2c_driver lp8788_driver = {
.driver = {
.name = "lp8788",
},
- .probe = lp8788_probe,
+ .probe_new = lp8788_probe,
.remove = lp8788_remove,
- .id_table = lp8788_ids,
};
static int __init lp8788_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