Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha
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
1
Merge Requests
1
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
FMC TDC 1ns 5cha
Commits
49c38117
Commit
49c38117
authored
Feb 06, 2023
by
Vaibhav Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software: kernel: hwmon: Use updated ft_temperature_get() API
Signed-off-by:
Vaibhav Gupta
<
vaibhav.gupta@cern.ch
>
parent
4c8c92fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
ft-hwmon.c
software/kernel/ft-hwmon.c
+6
-3
No files found.
software/kernel/ft-hwmon.c
View file @
49c38117
...
...
@@ -22,12 +22,15 @@ static umode_t ft_hwmon_temp_is_visible(const void *_data,
static
int
ft_hwmon_temp_read
(
struct
device
*
dev
,
enum
hwmon_sensor_types
type
,
u32
attr
,
int
channel
,
long
*
val
)
{
int
value
,
ret
;
struct
fmctdc_dev
*
ft
=
dev_get_drvdata
(
dev
);
*
val
=
ft_temperature_get
(
ft
);
ret
=
ft_temperature_get
(
ft
,
&
value
);
if
(
*
val
<
0
)
dev_err
(
dev
,
"Could not read temperature: %d"
,
-
EIO
);
if
(
ret
<
0
)
dev_err
(
dev
,
"Could not read temperature: %d"
,
ret
);
else
*
val
=
(
long
)
value
;
return
0
;
}
...
...
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