Skip to content

Commit 060e4b0

Browse files
author
Jiri Kosina
committed
Merge branch 'for-6.2/i2c' into for-linus
- conversion of I2C HID drivers to use new simplified I2C probing (Stephen Kitt)
2 parents 91e9b02 + baf34f3 commit 060e4b0

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

drivers/hid/i2c-hid/i2c-hid-of-elan.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ static void elan_i2c_hid_power_down(struct i2chid_ops *ops)
6868
regulator_disable(ihid_elan->vcc33);
6969
}
7070

71-
static int i2c_hid_of_elan_probe(struct i2c_client *client,
72-
const struct i2c_device_id *id)
71+
static int i2c_hid_of_elan_probe(struct i2c_client *client)
7372
{
7473
struct i2c_hid_of_elan *ihid_elan;
7574

@@ -119,7 +118,7 @@ static struct i2c_driver elan_i2c_hid_ts_driver = {
119118
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
120119
.of_match_table = of_match_ptr(elan_i2c_hid_of_match),
121120
},
122-
.probe = i2c_hid_of_elan_probe,
121+
.probe_new = i2c_hid_of_elan_probe,
123122
.remove = i2c_hid_core_remove,
124123
.shutdown = i2c_hid_core_shutdown,
125124
};

drivers/hid/i2c-hid/i2c-hid-of-goodix.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ static int ihid_goodix_vdd_notify(struct notifier_block *nb,
8787
return ret;
8888
}
8989

90-
static int i2c_hid_of_goodix_probe(struct i2c_client *client,
91-
const struct i2c_device_id *id)
90+
static int i2c_hid_of_goodix_probe(struct i2c_client *client)
9291
{
9392
struct i2c_hid_of_goodix *ihid_goodix;
9493
int ret;
@@ -167,7 +166,7 @@ static struct i2c_driver goodix_i2c_hid_ts_driver = {
167166
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
168167
.of_match_table = of_match_ptr(goodix_i2c_hid_of_match),
169168
},
170-
.probe = i2c_hid_of_goodix_probe,
169+
.probe_new = i2c_hid_of_goodix_probe,
171170
.remove = i2c_hid_core_remove,
172171
.shutdown = i2c_hid_core_shutdown,
173172
};

drivers/hid/i2c-hid/i2c-hid-of.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ static void i2c_hid_of_power_down(struct i2chid_ops *ops)
6666
ihid_of->supplies);
6767
}
6868

69-
static int i2c_hid_of_probe(struct i2c_client *client,
70-
const struct i2c_device_id *dev_id)
69+
static int i2c_hid_of_probe(struct i2c_client *client)
7170
{
7271
struct device *dev = &client->dev;
7372
struct i2c_hid_of *ihid_of;
@@ -138,7 +137,7 @@ static struct i2c_driver i2c_hid_of_driver = {
138137
.of_match_table = of_match_ptr(i2c_hid_of_match),
139138
},
140139

141-
.probe = i2c_hid_of_probe,
140+
.probe_new = i2c_hid_of_probe,
142141
.remove = i2c_hid_core_remove,
143142
.shutdown = i2c_hid_core_shutdown,
144143
.id_table = i2c_hid_of_id_table,

0 commit comments

Comments
 (0)