Re: [PATCH V3 02/11] power: charger-manager: Use thermal subsystem interface only to get temperature.

From: Sebastian Reichel
Date: Wed Jan 21 2015 - 17:39:20 EST


Hi Jonghwa,

On Fri, Dec 19, 2014 at 05:55:14PM +0900, Jonghwa Lee wrote:
> It drops the way of using power_supply interface to reference battery's
> temperature. Then it tries to use thermal subsystem's only. This makes driver
> more simple and also can remove ifdeferies.

this breaks allmodconfig, since CONFIG_THERMAL can be built as
module and charger-manager will be builtin:

drivers/built-in.o: In function `cm_get_battery_temperature.isra.4':
binder.c:(.text+0x2f4008): undefined reference to `thermal_zone_get_temp'
drivers/built-in.o: In function `charger_manager_probe':
binder.c:(.text+0x2f62c4): undefined reference to `thermal_zone_get_zone_by_name'
Makefile:917: recipe for target 'vmlinux' failed

-- Sebastian

Attachment: signature.asc
Description: Digital signature