Re: [PATCH] iio: adc: ina2xx: Use 64-bit arithmetic instead of 32-bit

2018-02-17 Thread Jonathan Cameron
On Tue, 13 Feb 2018 10:52:58 -0600 "Gustavo A. R. Silva" wrote: > Add suffix ULL to constant 1000 in order to give the compiler complete > information about the proper arithmetic to use. Notice that this > constant is used in a context that expects an expression of type > u64 (64 bits, unsigned).

[PATCH] iio: adc: ina2xx: Use 64-bit arithmetic instead of 32-bit

2018-02-13 Thread Gustavo A. R. Silva
Add suffix ULL to constant 1000 in order to give the compiler complete information about the proper arithmetic to use. Notice that this constant is used in a context that expects an expression of type u64 (64 bits, unsigned). The expression 1000 * sampling_us is currently being evaluated using 32-