dax_devs.c (4f2c0a4acffbec01079c28f839422e64ddeff004) dax_devs.c (2a81ada32f0e584fc0c943e0d3a8c9f4fae411d6)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright(c) 2013-2016 Intel Corporation. All rights reserved.
4 */
5#include <linux/device.h>
6#include <linux/sizes.h>
7#include <linux/slab.h>
8#include <linux/mm.h>

--- 24 unchanged lines hidden (view full) ---

33EXPORT_SYMBOL(to_nd_dax);
34
35static const struct device_type nd_dax_device_type = {
36 .name = "nd_dax",
37 .release = nd_dax_release,
38 .groups = nd_pfn_attribute_groups,
39};
40
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright(c) 2013-2016 Intel Corporation. All rights reserved.
4 */
5#include <linux/device.h>
6#include <linux/sizes.h>
7#include <linux/slab.h>
8#include <linux/mm.h>

--- 24 unchanged lines hidden (view full) ---

33EXPORT_SYMBOL(to_nd_dax);
34
35static const struct device_type nd_dax_device_type = {
36 .name = "nd_dax",
37 .release = nd_dax_release,
38 .groups = nd_pfn_attribute_groups,
39};
40
41bool is_nd_dax(struct device *dev)
41bool is_nd_dax(const struct device *dev)
42{
43 return dev ? dev->type == &nd_dax_device_type : false;
44}
45EXPORT_SYMBOL(is_nd_dax);
46
47static struct nd_dax *nd_dax_alloc(struct nd_region *nd_region)
48{
49 struct nd_pfn *nd_pfn;

--- 77 unchanged lines hidden ---
42{
43 return dev ? dev->type == &nd_dax_device_type : false;
44}
45EXPORT_SYMBOL(is_nd_dax);
46
47static struct nd_dax *nd_dax_alloc(struct nd_region *nd_region)
48{
49 struct nd_pfn *nd_pfn;

--- 77 unchanged lines hidden ---