]> git.baikalelectronics.ru Git - kernel.git/commit
iio: hid-sensor-attributes: Convert to use int_pow()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 19 Jun 2019 14:07:02 +0000 (17:07 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 18 Aug 2019 19:19:55 +0000 (20:19 +0100)
commitc5d9da871f9c8b246d6213d6e44dfe7fecad861c
treee49fa98f326dc0b69a34c7f37c4d77cfd430bd4d
parentc61195523a857ef343fa28155f3abd1b13f24f19
iio: hid-sensor-attributes: Convert to use int_pow()

Instead of linear approach to calculate power of 10, use generic int_pow()
which does it better.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/common/hid-sensors/hid-sensor-attributes.c