Commit a90326c
cxl/region: Refactor common create region code
create_pmem_region_store() and create_ram_region_store() are identical
with the exception of the region mode. With the addition of DC region
mode this would end up being 3 copies of the same code.
Refactor create_pmem_region_store() and create_ram_region_store() to use
a single common function to be used in subsequent DC code.
Suggested-by: Fan Ni <fan.ni@samsung.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Li Ming <ming4.li@intel.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Link: https://patch.msgid.link/20241107-dcd-type2-upstream-v7-6-56a84e66bc36@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>1 parent 27fcfb4 commit a90326c
1 file changed
+11
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2536 | 2536 | | |
2537 | 2537 | | |
2538 | 2538 | | |
2539 | | - | |
2540 | | - | |
2541 | | - | |
| 2539 | + | |
| 2540 | + | |
2542 | 2541 | | |
2543 | 2542 | | |
2544 | 2543 | | |
| |||
2548 | 2547 | | |
2549 | 2548 | | |
2550 | 2549 | | |
2551 | | - | |
| 2550 | + | |
2552 | 2551 | | |
2553 | 2552 | | |
2554 | 2553 | | |
2555 | 2554 | | |
2556 | 2555 | | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
| 2562 | + | |
2557 | 2563 | | |
2558 | 2564 | | |
2559 | 2565 | | |
2560 | 2566 | | |
2561 | 2567 | | |
2562 | 2568 | | |
2563 | | - | |
2564 | | - | |
2565 | | - | |
2566 | | - | |
2567 | | - | |
2568 | | - | |
2569 | | - | |
2570 | | - | |
2571 | | - | |
2572 | | - | |
2573 | | - | |
2574 | | - | |
2575 | | - | |
| 2569 | + | |
2576 | 2570 | | |
2577 | 2571 | | |
2578 | 2572 | | |
| |||
0 commit comments