Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

extcon: ptn5150: Convert to .probe_new

The 'struct i2c_device_id' argument of probe function is not used, so
convert the driver to simpler 'probe_new' interface.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Vijai Kumar K <vijaikumar.kanagarajan@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Krzysztof Kozlowski and committed by
Chanwoo Choi
0b0549b6 35f1f8f2

+2 -3
+2 -3
drivers/extcon/extcon-ptn5150.c
··· 218 218 return 0; 219 219 } 220 220 221 - static int ptn5150_i2c_probe(struct i2c_client *i2c, 222 - const struct i2c_device_id *id) 221 + static int ptn5150_i2c_probe(struct i2c_client *i2c) 223 222 { 224 223 struct device *dev = &i2c->dev; 225 224 struct device_node *np = i2c->dev.of_node; ··· 333 334 .name = "ptn5150", 334 335 .of_match_table = ptn5150_dt_match, 335 336 }, 336 - .probe = ptn5150_i2c_probe, 337 + .probe_new = ptn5150_i2c_probe, 337 338 .id_table = ptn5150_i2c_id, 338 339 }; 339 340 module_i2c_driver(ptn5150_i2c_driver);