Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
e2c71417
Commit
e2c71417
authored
Sep 15, 2023
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw/drv: make driver build under kernel 6.2
parent
f1dc7ba8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
mockturtle-core.c
software/kernel/mockturtle-core.c
+8
-0
No files found.
software/kernel/mockturtle-core.c
View file @
e2c71417
...
...
@@ -38,14 +38,22 @@
static
DEFINE_IDA
(
trtl_ida
);
#if KERNEL_VERSION(6, 2, 0) <= LINUX_VERSION_CODE
static
int
trtl_dev_uevent
(
const
struct
device
*
dev
,
struct
kobj_uevent_env
*
env
)
#else
static
int
trtl_dev_uevent
(
struct
device
*
dev
,
struct
kobj_uevent_env
*
env
)
#endif
{
add_uevent_var
(
env
,
"DEVMODE=%#o"
,
0660
);
return
0
;
}
#if KERNEL_VERSION(6, 2, 0) <= LINUX_VERSION_CODE
static
char
*
trtl_devnode
(
const
struct
device
*
dev
,
umode_t
*
mode
)
#else
static
char
*
trtl_devnode
(
struct
device
*
dev
,
umode_t
*
mode
)
#endif
{
return
kasprintf
(
GFP_KERNEL
,
"mockturtle/%s"
,
dev_name
(
dev
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment