diff options
| author | Kishor Krishna Bhat <kishkris@codeaurora.org> | 2020-07-08 19:28:56 +0530 |
|---|---|---|
| committer | Kishor Krishna Bhat <kishkris@codeaurora.org> | 2020-07-10 11:18:59 +0530 |
| commit | 1345034208a2d58ab7d077bdd95db2c431f0935a (patch) | |
| tree | c6363718972532aac96de33eba2e894027dca03d | |
| parent | dd9f1b4fb730a90f3c5959acba05fb739482bb99 (diff) | |
power: qpnp-fg-gen3: Fix warning with llvm
Fix Wsizeof-array-div, type cast error when llvm is enabled.
Change-Id: Ia01af9b84161ae4cad978d4b652b9e21107d9bbb
Signed-off-by: Kishor Krishna Bhat <kishkris@codeaurora.org>
| -rw-r--r-- | drivers/power/supply/qcom/qpnp-fg-gen3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/supply/qcom/qpnp-fg-gen3.c b/drivers/power/supply/qcom/qpnp-fg-gen3.c index a546621d0837..32fb0538cc8c 100644 --- a/drivers/power/supply/qcom/qpnp-fg-gen3.c +++ b/drivers/power/supply/qcom/qpnp-fg-gen3.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. +/* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -2608,7 +2608,7 @@ static void clear_cycle_counter(struct fg_chip *chip) } rc = fg_sram_write(chip, CYCLE_COUNT_WORD, CYCLE_COUNT_OFFSET, (u8 *)&chip->cyc_ctr.count, - sizeof(chip->cyc_ctr.count) / sizeof(u8 *), + sizeof(chip->cyc_ctr.count) / (sizeof(u8 *)), FG_IMA_DEFAULT); if (rc < 0) pr_err("failed to clear cycle counter rc=%d\n", rc); |
