Commit 2094dbbd authored by Jakub Kicinski's avatar Jakub Kicinski

Merge branch 'net-complete-conversion-to-i2c_probe_new'

Jakub Kicinski says:

====================
net: Complete conversion to i2c_probe_new

Reposting for Uwe the networking slice of his mega-series:
https://lore.kernel.org/all/20221118224540.619276-1-uwe@kleine-koenig.org/
so that our build bot can confirm the obvious.

fix mlx5 -> mlxsw while at it.
====================

Link: https://lore.kernel.org/r/20221123045507.2091409-1-kuba@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parents e80bd08f 1fa08273
...@@ -29,8 +29,7 @@ static const struct regmap_config lan9303_i2c_regmap_config = { ...@@ -29,8 +29,7 @@ static const struct regmap_config lan9303_i2c_regmap_config = {
.cache_type = REGCACHE_NONE, .cache_type = REGCACHE_NONE,
}; };
static int lan9303_i2c_probe(struct i2c_client *client, static int lan9303_i2c_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct lan9303_i2c *sw_dev; struct lan9303_i2c *sw_dev;
int ret; int ret;
...@@ -106,7 +105,7 @@ static struct i2c_driver lan9303_i2c_driver = { ...@@ -106,7 +105,7 @@ static struct i2c_driver lan9303_i2c_driver = {
.name = "LAN9303_I2C", .name = "LAN9303_I2C",
.of_match_table = of_match_ptr(lan9303_i2c_of_match), .of_match_table = of_match_ptr(lan9303_i2c_of_match),
}, },
.probe = lan9303_i2c_probe, .probe_new = lan9303_i2c_probe,
.remove = lan9303_i2c_remove, .remove = lan9303_i2c_remove,
.shutdown = lan9303_i2c_shutdown, .shutdown = lan9303_i2c_shutdown,
.id_table = lan9303_i2c_id, .id_table = lan9303_i2c_id,
......
...@@ -14,8 +14,7 @@ ...@@ -14,8 +14,7 @@
KSZ_REGMAP_TABLE(ksz9477, not_used, 16, 0, 0); KSZ_REGMAP_TABLE(ksz9477, not_used, 16, 0, 0);
static int ksz9477_i2c_probe(struct i2c_client *i2c, static int ksz9477_i2c_probe(struct i2c_client *i2c)
const struct i2c_device_id *i2c_id)
{ {
struct regmap_config rc; struct regmap_config rc;
struct ksz_device *dev; struct ksz_device *dev;
...@@ -120,7 +119,7 @@ static struct i2c_driver ksz9477_i2c_driver = { ...@@ -120,7 +119,7 @@ static struct i2c_driver ksz9477_i2c_driver = {
.name = "ksz9477-switch", .name = "ksz9477-switch",
.of_match_table = of_match_ptr(ksz9477_dt_ids), .of_match_table = of_match_ptr(ksz9477_dt_ids),
}, },
.probe = ksz9477_i2c_probe, .probe_new = ksz9477_i2c_probe,
.remove = ksz9477_i2c_remove, .remove = ksz9477_i2c_remove,
.shutdown = ksz9477_i2c_shutdown, .shutdown = ksz9477_i2c_shutdown,
.id_table = ksz9477_i2c_id, .id_table = ksz9477_i2c_id,
......
...@@ -76,8 +76,7 @@ static const struct regmap_config xrs700x_i2c_regmap_config = { ...@@ -76,8 +76,7 @@ static const struct regmap_config xrs700x_i2c_regmap_config = {
.val_format_endian = REGMAP_ENDIAN_BIG .val_format_endian = REGMAP_ENDIAN_BIG
}; };
static int xrs700x_i2c_probe(struct i2c_client *i2c, static int xrs700x_i2c_probe(struct i2c_client *i2c)
const struct i2c_device_id *i2c_id)
{ {
struct xrs700x *priv; struct xrs700x *priv;
int ret; int ret;
...@@ -148,7 +147,7 @@ static struct i2c_driver xrs700x_i2c_driver = { ...@@ -148,7 +147,7 @@ static struct i2c_driver xrs700x_i2c_driver = {
.name = "xrs700x-i2c", .name = "xrs700x-i2c",
.of_match_table = of_match_ptr(xrs700x_i2c_dt_ids), .of_match_table = of_match_ptr(xrs700x_i2c_dt_ids),
}, },
.probe = xrs700x_i2c_probe, .probe_new = xrs700x_i2c_probe,
.remove = xrs700x_i2c_remove, .remove = xrs700x_i2c_remove,
.shutdown = xrs700x_i2c_shutdown, .shutdown = xrs700x_i2c_shutdown,
.id_table = xrs700x_i2c_id, .id_table = xrs700x_i2c_id,
......
...@@ -632,9 +632,9 @@ static const struct mlxsw_bus mlxsw_i2c_bus = { ...@@ -632,9 +632,9 @@ static const struct mlxsw_bus mlxsw_i2c_bus = {
.cmd_exec = mlxsw_i2c_cmd_exec, .cmd_exec = mlxsw_i2c_cmd_exec,
}; };
static int mlxsw_i2c_probe(struct i2c_client *client, static int mlxsw_i2c_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
const struct i2c_device_id *id = i2c_client_get_device_id(client);
const struct i2c_adapter_quirks *quirks = client->adapter->quirks; const struct i2c_adapter_quirks *quirks = client->adapter->quirks;
struct mlxsw_i2c *mlxsw_i2c; struct mlxsw_i2c *mlxsw_i2c;
u8 status; u8 status;
...@@ -751,7 +751,7 @@ static void mlxsw_i2c_remove(struct i2c_client *client) ...@@ -751,7 +751,7 @@ static void mlxsw_i2c_remove(struct i2c_client *client)
int mlxsw_i2c_driver_register(struct i2c_driver *i2c_driver) int mlxsw_i2c_driver_register(struct i2c_driver *i2c_driver)
{ {
i2c_driver->probe = mlxsw_i2c_probe; i2c_driver->probe_new = mlxsw_i2c_probe;
i2c_driver->remove = mlxsw_i2c_remove; i2c_driver->remove = mlxsw_i2c_remove;
return i2c_add_driver(i2c_driver); return i2c_add_driver(i2c_driver);
} }
......
...@@ -231,8 +231,7 @@ static const struct nfc_phy_ops i2c_phy_ops = { ...@@ -231,8 +231,7 @@ static const struct nfc_phy_ops i2c_phy_ops = {
.disable = microread_i2c_disable, .disable = microread_i2c_disable,
}; };
static int microread_i2c_probe(struct i2c_client *client, static int microread_i2c_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct microread_i2c_phy *phy; struct microread_i2c_phy *phy;
int r; int r;
...@@ -287,7 +286,7 @@ static struct i2c_driver microread_i2c_driver = { ...@@ -287,7 +286,7 @@ static struct i2c_driver microread_i2c_driver = {
.driver = { .driver = {
.name = MICROREAD_I2C_DRIVER_NAME, .name = MICROREAD_I2C_DRIVER_NAME,
}, },
.probe = microread_i2c_probe, .probe_new = microread_i2c_probe,
.remove = microread_i2c_remove, .remove = microread_i2c_remove,
.id_table = microread_i2c_id, .id_table = microread_i2c_id,
}; };
......
...@@ -181,8 +181,7 @@ static int nfcmrvl_i2c_parse_dt(struct device_node *node, ...@@ -181,8 +181,7 @@ static int nfcmrvl_i2c_parse_dt(struct device_node *node,
return 0; return 0;
} }
static int nfcmrvl_i2c_probe(struct i2c_client *client, static int nfcmrvl_i2c_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
const struct nfcmrvl_platform_data *pdata; const struct nfcmrvl_platform_data *pdata;
struct nfcmrvl_i2c_drv_data *drv_data; struct nfcmrvl_i2c_drv_data *drv_data;
...@@ -257,7 +256,7 @@ static const struct i2c_device_id nfcmrvl_i2c_id_table[] = { ...@@ -257,7 +256,7 @@ static const struct i2c_device_id nfcmrvl_i2c_id_table[] = {
MODULE_DEVICE_TABLE(i2c, nfcmrvl_i2c_id_table); MODULE_DEVICE_TABLE(i2c, nfcmrvl_i2c_id_table);
static struct i2c_driver nfcmrvl_i2c_driver = { static struct i2c_driver nfcmrvl_i2c_driver = {
.probe = nfcmrvl_i2c_probe, .probe_new = nfcmrvl_i2c_probe,
.id_table = nfcmrvl_i2c_id_table, .id_table = nfcmrvl_i2c_id_table,
.remove = nfcmrvl_i2c_remove, .remove = nfcmrvl_i2c_remove,
.driver = { .driver = {
......
...@@ -263,8 +263,7 @@ static const struct acpi_gpio_mapping acpi_nxp_nci_gpios[] = { ...@@ -263,8 +263,7 @@ static const struct acpi_gpio_mapping acpi_nxp_nci_gpios[] = {
{ } { }
}; };
static int nxp_nci_i2c_probe(struct i2c_client *client, static int nxp_nci_i2c_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct device *dev = &client->dev; struct device *dev = &client->dev;
struct nxp_nci_i2c_phy *phy; struct nxp_nci_i2c_phy *phy;
...@@ -349,7 +348,7 @@ static struct i2c_driver nxp_nci_i2c_driver = { ...@@ -349,7 +348,7 @@ static struct i2c_driver nxp_nci_i2c_driver = {
.acpi_match_table = ACPI_PTR(acpi_id), .acpi_match_table = ACPI_PTR(acpi_id),
.of_match_table = of_nxp_nci_i2c_match, .of_match_table = of_nxp_nci_i2c_match,
}, },
.probe = nxp_nci_i2c_probe, .probe_new = nxp_nci_i2c_probe,
.id_table = nxp_nci_i2c_id_table, .id_table = nxp_nci_i2c_id_table,
.remove = nxp_nci_i2c_remove, .remove = nxp_nci_i2c_remove,
}; };
......
...@@ -163,8 +163,7 @@ static const struct pn533_phy_ops i2c_phy_ops = { ...@@ -163,8 +163,7 @@ static const struct pn533_phy_ops i2c_phy_ops = {
}; };
static int pn533_i2c_probe(struct i2c_client *client, static int pn533_i2c_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct pn533_i2c_phy *phy; struct pn533_i2c_phy *phy;
struct pn533 *priv; struct pn533 *priv;
...@@ -260,7 +259,7 @@ static struct i2c_driver pn533_i2c_driver = { ...@@ -260,7 +259,7 @@ static struct i2c_driver pn533_i2c_driver = {
.name = PN533_I2C_DRIVER_NAME, .name = PN533_I2C_DRIVER_NAME,
.of_match_table = of_match_ptr(of_pn533_i2c_match), .of_match_table = of_match_ptr(of_pn533_i2c_match),
}, },
.probe = pn533_i2c_probe, .probe_new = pn533_i2c_probe,
.id_table = pn533_i2c_id_table, .id_table = pn533_i2c_id_table,
.remove = pn533_i2c_remove, .remove = pn533_i2c_remove,
}; };
......
...@@ -866,8 +866,7 @@ static const struct acpi_gpio_mapping acpi_pn544_gpios[] = { ...@@ -866,8 +866,7 @@ static const struct acpi_gpio_mapping acpi_pn544_gpios[] = {
{ }, { },
}; };
static int pn544_hci_i2c_probe(struct i2c_client *client, static int pn544_hci_i2c_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct device *dev = &client->dev; struct device *dev = &client->dev;
struct pn544_i2c_phy *phy; struct pn544_i2c_phy *phy;
...@@ -954,7 +953,7 @@ static struct i2c_driver pn544_hci_i2c_driver = { ...@@ -954,7 +953,7 @@ static struct i2c_driver pn544_hci_i2c_driver = {
.of_match_table = of_match_ptr(of_pn544_i2c_match), .of_match_table = of_match_ptr(of_pn544_i2c_match),
.acpi_match_table = ACPI_PTR(pn544_hci_i2c_acpi_match), .acpi_match_table = ACPI_PTR(pn544_hci_i2c_acpi_match),
}, },
.probe = pn544_hci_i2c_probe, .probe_new = pn544_hci_i2c_probe,
.id_table = pn544_hci_i2c_id_table, .id_table = pn544_hci_i2c_id_table,
.remove = pn544_hci_i2c_remove, .remove = pn544_hci_i2c_remove,
}; };
......
...@@ -177,8 +177,7 @@ static int s3fwrn5_i2c_parse_dt(struct i2c_client *client) ...@@ -177,8 +177,7 @@ static int s3fwrn5_i2c_parse_dt(struct i2c_client *client)
return 0; return 0;
} }
static int s3fwrn5_i2c_probe(struct i2c_client *client, static int s3fwrn5_i2c_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct s3fwrn5_i2c_phy *phy; struct s3fwrn5_i2c_phy *phy;
int ret; int ret;
...@@ -262,7 +261,7 @@ static struct i2c_driver s3fwrn5_i2c_driver = { ...@@ -262,7 +261,7 @@ static struct i2c_driver s3fwrn5_i2c_driver = {
.name = S3FWRN5_I2C_DRIVER_NAME, .name = S3FWRN5_I2C_DRIVER_NAME,
.of_match_table = of_match_ptr(of_s3fwrn5_i2c_match), .of_match_table = of_match_ptr(of_s3fwrn5_i2c_match),
}, },
.probe = s3fwrn5_i2c_probe, .probe_new = s3fwrn5_i2c_probe,
.remove = s3fwrn5_i2c_remove, .remove = s3fwrn5_i2c_remove,
.id_table = s3fwrn5_i2c_id_table, .id_table = s3fwrn5_i2c_id_table,
}; };
......
...@@ -195,8 +195,7 @@ static const struct acpi_gpio_mapping acpi_st_nci_gpios[] = { ...@@ -195,8 +195,7 @@ static const struct acpi_gpio_mapping acpi_st_nci_gpios[] = {
{}, {},
}; };
static int st_nci_i2c_probe(struct i2c_client *client, static int st_nci_i2c_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct device *dev = &client->dev; struct device *dev = &client->dev;
struct st_nci_i2c_phy *phy; struct st_nci_i2c_phy *phy;
...@@ -284,7 +283,7 @@ static struct i2c_driver st_nci_i2c_driver = { ...@@ -284,7 +283,7 @@ static struct i2c_driver st_nci_i2c_driver = {
.of_match_table = of_match_ptr(of_st_nci_i2c_match), .of_match_table = of_match_ptr(of_st_nci_i2c_match),
.acpi_match_table = ACPI_PTR(st_nci_i2c_acpi_match), .acpi_match_table = ACPI_PTR(st_nci_i2c_acpi_match),
}, },
.probe = st_nci_i2c_probe, .probe_new = st_nci_i2c_probe,
.id_table = st_nci_i2c_id_table, .id_table = st_nci_i2c_id_table,
.remove = st_nci_i2c_remove, .remove = st_nci_i2c_remove,
}; };
......
...@@ -487,8 +487,7 @@ static const struct acpi_gpio_mapping acpi_st21nfca_gpios[] = { ...@@ -487,8 +487,7 @@ static const struct acpi_gpio_mapping acpi_st21nfca_gpios[] = {
{}, {},
}; };
static int st21nfca_hci_i2c_probe(struct i2c_client *client, static int st21nfca_hci_i2c_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct device *dev = &client->dev; struct device *dev = &client->dev;
struct st21nfca_i2c_phy *phy; struct st21nfca_i2c_phy *phy;
...@@ -598,7 +597,7 @@ static struct i2c_driver st21nfca_hci_i2c_driver = { ...@@ -598,7 +597,7 @@ static struct i2c_driver st21nfca_hci_i2c_driver = {
.of_match_table = of_match_ptr(of_st21nfca_i2c_match), .of_match_table = of_match_ptr(of_st21nfca_i2c_match),
.acpi_match_table = ACPI_PTR(st21nfca_hci_i2c_acpi_match), .acpi_match_table = ACPI_PTR(st21nfca_hci_i2c_acpi_match),
}, },
.probe = st21nfca_hci_i2c_probe, .probe_new = st21nfca_hci_i2c_probe,
.id_table = st21nfca_hci_i2c_id_table, .id_table = st21nfca_hci_i2c_id_table,
.remove = st21nfca_hci_i2c_remove, .remove = st21nfca_hci_i2c_remove,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment