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)
commit473d12f7638c93acbd9296a8cd455b203d5eb528
treee49fa98f326dc0b69a34c7f37c4d77cfd430bd4d
parent2715a28105c6b2cd75e2a594e45f8b57dde783f0
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