lkml.org 
[lkml]   [2014]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RESEND v2 03/10] power: charger-manager: Remove deprecated function, cm_notify_event().
On 2014년 12월 19일 16:52, MyungJoo Ham wrote:

>>
>> cm_notify_event() is introduced to get event associated with battery status
>> externally, but no one had been used. Moreover it makes charger manager
>> driver more complicated. This patch tries to drop the function and all data
>> related to simplify the driver.
>>
>> Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
>
> You are not just removing cm_notify_event() and its related.
>
> You are hereby removing the much of software charger control
> and suspend-related operations. Could you please be more specific
> on why? (many of such features are to comply with operators' requirements)
>


Unfortunately, all those codes are only for cm_notify_event(). Currently, and
since charger-manager has been introduced then, there's no one to use it. And
the works of cm_notify_event() are is just notifying the event to user space or
reset the polling work. We may need passive method to get event related with
battery status externally, if so we can use power_supply class notification
method, power_supply_notifier.

I decided to remove it to make driver simple and clean.

Thanks,
Jonghwa


> (Or we may meet next Monday for some discussions :) )
>
>> ---
>> .../bindings/power_supply/charger-manager.txt | 1 -
>> drivers/power/charger-manager.c | 196 +-------------------
>> include/linux/power/charger-manager.h | 19 +-
>> 3 files changed, 8 insertions(+), 208 deletions(-)
>>




\
 
 \ /
  Last update: 2014-12-19 10:01    [W:0.071 / U:2.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site