summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@toblux.com>2024-07-11 16:45:03 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-08-03 12:13:37 +0300
commit7b00bb6fd67495f7fe7d9817ee002c12ecf5a4be (patch)
treedc8de624dccd685873654994cdcee67232a3e30d
parent4cc2fc445d2e4e63ed6bd5d310752d88d365f8e4 (diff)
downloadlinux-7b00bb6fd67495f7fe7d9817ee002c12ecf5a4be.tar.xz
iio: common: scmi_iio: Remove unnecessary u64 type cast
The variable uHz already has the type u64 and casting it to u64 is unnecessary. Remove the redundant type cast. Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com> Link: https://patch.msgid.link/20240711134502.168484-1-thorsten.blum@toblux.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r--drivers/iio/common/scmi_sensors/scmi_iio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/common/scmi_sensors/scmi_iio.c b/drivers/iio/common/scmi_sensors/scmi_iio.c
index 7190eaede7fb..ed15dcbf4cf6 100644
--- a/drivers/iio/common/scmi_sensors/scmi_iio.c
+++ b/drivers/iio/common/scmi_sensors/scmi_iio.c
@@ -158,7 +158,7 @@ static int scmi_iio_set_odr_val(struct iio_dev *iio_dev, int val, int val2)
* To calculate the multiplier,we convert the sf into char string and
* count the number of characters
*/
- sf = (u64)uHz * 0xFFFF;
+ sf = uHz * 0xFFFF;
do_div(sf, MICROHZ_PER_HZ);
mult = scnprintf(buf, sizeof(buf), "%llu", sf) - 1;