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

regulator: max8893: Drop "_new" from probe callback

The driver was introduced when .probe_new was the right probe callback
to use for i2c drivers. Today .probe is the right one (again) and the
driver was already switched in commit 964e186547b2 ("regulator: Switch
i2c drivers back to use .probe()") but the name continued to include
"_new". To prevent code readers wondering about what might be new here,
drop that part of the name.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230721073303.112597-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Uwe Kleine-König and committed by
Mark Brown
813ebba3 541e7595

+2 -2
+2 -2
drivers/regulator/max8893.c
··· 125 125 .val_bits = 8, 126 126 }; 127 127 128 - static int max8893_probe_new(struct i2c_client *i2c) 128 + static int max8893_probe(struct i2c_client *i2c) 129 129 { 130 130 int id, ret; 131 131 struct regulator_config config = {.dev = &i2c->dev}; ··· 168 168 MODULE_DEVICE_TABLE(i2c, max8893_ids); 169 169 170 170 static struct i2c_driver max8893_driver = { 171 - .probe = max8893_probe_new, 171 + .probe = max8893_probe, 172 172 .driver = { 173 173 .name = "max8893", 174 174 .probe_type = PROBE_PREFER_ASYNCHRONOUS,