Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: adc: rn5t618: Re-use generic struct u16_fract

Instead of custom data type re-use generic struct u16_fract.
No changes intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220126135353.24007-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Andy Shevchenko and committed by
Jonathan Cameron
84cd574e e820a337

+1 -6
+1 -6
drivers/iio/adc/rn5t618-adc.c
··· 42 42 int irq; 43 43 }; 44 44 45 - struct rn5t618_channel_ratios { 46 - u16 numerator; 47 - u16 denominator; 48 - }; 49 - 50 45 enum rn5t618_channels { 51 46 LIMMON = 0, 52 47 VBAT, ··· 53 58 AIN0 54 59 }; 55 60 56 - static const struct rn5t618_channel_ratios rn5t618_ratios[8] = { 61 + static const struct u16_fract rn5t618_ratios[8] = { 57 62 [LIMMON] = {50, 32}, /* measured across 20mOhm, amplified by 32 */ 58 63 [VBAT] = {2, 1}, 59 64 [VADP] = {3, 1},