Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70be84de authored by Sultan Alsawaf's avatar Sultan Alsawaf Committed by Andrea
Browse files

qpnp-fg-gen3: Fix fg_sram_write() call in clear_cycle_counter()



This not only passes the incorrect size to fg_sram_write(), but also
uses incorrect syntax to pass the pointer of the payload to be written.
`chip->cyc_ctr.count` is defined as an array so there shouldn't be an
ampersand in front of it to get its address. We can also get its size
with just a plain sizeof().

Signed-off-by: default avatarSultan Alsawaf <sultan@kerneltoast.com>

qpnp-fg-gen3: Fix fg_sram_write() call in repeated clear_cycle_counter()

Signed-off-by: default avatarAndrea Pucci <linckandrea01@gmail.com>
parent 47025c2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment