Skip to content
Commit eb9650d6 authored by Peter Huewe's avatar Peter Huewe Committed by Anton Vorontsov
Browse files

ds2782_battery: Rename get_current to fix build failure / name conflict



This patch changes the name of get_current function pointer to
get_battery_current to resolve a name conflict with the get_current
macro defined in current.h.

This conflict resulted in a build-failure[1] for the sh4 arch
allyesconfig:

  drivers/power/ds2782_battery.c:216:48: error: macro "get_current"
  passed 2 arguments, but takes just

This patch fixes the issue. To be consistent the other function pointers
(_voltage,_capacity) were renamed too.

Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
Acked-by: default avatarRyan Mallon <ryan@bluewatersys.com>
Acked-by: default avatarMike Rapoport <mike@compulab.co.il>
Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
parent 7e27d6e7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment