summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/xe/xe_tile_sysfs.h
blob: 54a2ba8ba53368f46fbad6a79d00ed262d8319e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2023 Intel Corporation
 */

#ifndef _XE_TILE_SYSFS_H_
#define _XE_TILE_SYSFS_H_

#include "xe_tile_sysfs_types.h"

int xe_tile_sysfs_init(struct xe_tile *tile);

static inline struct xe_tile *
kobj_to_tile(struct kobject *kobj)
{
	return container_of(kobj, struct kobj_tile, base)->tile;
}

#endif /* _XE_TILE_SYSFS_H_ */