Home
last modified time | relevance | path

Searched refs:pdev_i2c (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/drivers/platform/mellanox/
Dnvsw-sn2201.c143 struct platform_device *pdev_i2c; member
1182 nvsw_sn2201->pdev_i2c = platform_device_register_resndata(nvsw_sn2201->dev, "i2c_mlxcpld", in nvsw_sn2201_config_pre_init()
1188 if (IS_ERR(nvsw_sn2201->pdev_i2c)) in nvsw_sn2201_config_pre_init()
1189 return PTR_ERR(nvsw_sn2201->pdev_i2c); in nvsw_sn2201_config_pre_init()
1236 if (nvsw_sn2201->pdev_i2c) in nvsw_sn2201_remove()
1237 platform_device_unregister(nvsw_sn2201->pdev_i2c); in nvsw_sn2201_remove()
/Linux-v6.1/drivers/platform/x86/
Dmlx-platform.c294 struct platform_device *pdev_i2c; member
5224 priv->pdev_i2c = platform_device_register_resndata(&mlxplat_dev->dev, "i2c_mlxcpld", in mlxplat_init()
5228 if (IS_ERR(priv->pdev_i2c)) { in mlxplat_init()
5229 err = PTR_ERR(priv->pdev_i2c); in mlxplat_init()
5234 priv->pdev_mux[i] = platform_device_register_resndata(&priv->pdev_i2c->dev, in mlxplat_init()
5351 platform_device_unregister(priv->pdev_i2c); in mlxplat_init()
5378 platform_device_unregister(priv->pdev_i2c); in mlxplat_exit()