cxl: Rename 'uport' to 'uport_dev'
[linux-block.git] / tools / testing / cxl / test / mock.c
index dbeef5c6f606d887fdd0abe6fcb54e637a27d4cb..da554df50bacb268da73d439c94f0c2d72a87930 100644 (file)
@@ -139,7 +139,7 @@ struct cxl_hdm *__wrap_devm_cxl_setup_hdm(struct cxl_port *port,
        struct cxl_hdm *cxlhdm;
        struct cxl_mock_ops *ops = get_cxl_mock_ops(&index);
 
-       if (ops && ops->is_mock_port(port->uport))
+       if (ops && ops->is_mock_port(port->uport_dev))
                cxlhdm = ops->devm_cxl_setup_hdm(port, info);
        else
                cxlhdm = devm_cxl_setup_hdm(port, info);
@@ -154,7 +154,7 @@ int __wrap_devm_cxl_enable_hdm(struct cxl_port *port, struct cxl_hdm *cxlhdm)
        int index, rc;
        struct cxl_mock_ops *ops = get_cxl_mock_ops(&index);
 
-       if (ops && ops->is_mock_port(port->uport))
+       if (ops && ops->is_mock_port(port->uport_dev))
                rc = 0;
        else
                rc = devm_cxl_enable_hdm(port, cxlhdm);
@@ -169,7 +169,7 @@ int __wrap_devm_cxl_add_passthrough_decoder(struct cxl_port *port)
        int rc, index;
        struct cxl_mock_ops *ops = get_cxl_mock_ops(&index);
 
-       if (ops && ops->is_mock_port(port->uport))
+       if (ops && ops->is_mock_port(port->uport_dev))
                rc = ops->devm_cxl_add_passthrough_decoder(port);
        else
                rc = devm_cxl_add_passthrough_decoder(port);
@@ -186,7 +186,7 @@ int __wrap_devm_cxl_enumerate_decoders(struct cxl_hdm *cxlhdm,
        struct cxl_port *port = cxlhdm->port;
        struct cxl_mock_ops *ops = get_cxl_mock_ops(&index);
 
-       if (ops && ops->is_mock_port(port->uport))
+       if (ops && ops->is_mock_port(port->uport_dev))
                rc = ops->devm_cxl_enumerate_decoders(cxlhdm, info);
        else
                rc = devm_cxl_enumerate_decoders(cxlhdm, info);
@@ -201,7 +201,7 @@ int __wrap_devm_cxl_port_enumerate_dports(struct cxl_port *port)
        int rc, index;
        struct cxl_mock_ops *ops = get_cxl_mock_ops(&index);
 
-       if (ops && ops->is_mock_port(port->uport))
+       if (ops && ops->is_mock_port(port->uport_dev))
                rc = ops->devm_cxl_port_enumerate_dports(port);
        else
                rc = devm_cxl_port_enumerate_dports(port);