projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ebf797
)
mfd: da9055-i2c: Convert to i2c's .probe_new()
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Fri, 18 Nov 2022 22:42:41 +0000
(23:42 +0100)
committer
Lee Jones
<lee@kernel.org>
Wed, 7 Dec 2022 13:27:21 +0000
(13:27 +0000)
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Lee Jones <lee@kernel.org>
Link:
https://lore.kernel.org/r/20221118224540.619276-428-uwe@kleine-koenig.org
drivers/mfd/da9055-i2c.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/da9055-i2c.c
b/drivers/mfd/da9055-i2c.c
index 276c7d1c509e0e2439f86a8ceecb39855d3a63cb..702abff506a1a49eae25f99b5b2660569946492d 100644
(file)
--- a/
drivers/mfd/da9055-i2c.c
+++ b/
drivers/mfd/da9055-i2c.c
@@
-15,8
+15,7
@@
#include <linux/mfd/da9055/core.h>
-static int da9055_i2c_probe(struct i2c_client *i2c,
- const struct i2c_device_id *id)
+static int da9055_i2c_probe(struct i2c_client *i2c)
{
struct da9055 *da9055;
int ret;
@@
-67,7
+66,7
@@
static const struct of_device_id da9055_of_match[] = {
};
static struct i2c_driver da9055_i2c_driver = {
- .probe = da9055_i2c_probe,
+ .probe
_new
= da9055_i2c_probe,
.remove = da9055_i2c_remove,
.id_table = da9055_i2c_id,
.driver = {