mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 09:20:17 +00:00
staging: iio: fix generic_buffer print2byte()
drop extra argument, move cast Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fa6173a0be
commit
1d633fd153
@ -72,8 +72,7 @@ void print2byte(int input, struct iio_channel_info *info)
|
||||
val &= (1 << info->bits_used) - 1;
|
||||
val = (int16_t)(val << (16 - info->bits_used)) >>
|
||||
(16 - info->bits_used);
|
||||
printf("%05f ", val,
|
||||
(float)(val + info->offset)*info->scale);
|
||||
printf("%05f ", ((float)val + info->offset)*info->scale);
|
||||
} else {
|
||||
uint16_t val = input;
|
||||
val &= (1 << info->bits_used) - 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user