lkml.org 
[lkml]   [2008]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] power_supply: change the way how wm97xx-bat driver is registered
Date
On Sunday 02 of November 2008 21:36:58 Dmitry wrote:
> 2008/10/29 Dmitry Baryshkov <dbaryshkov@gmail.com>:
> > Do register the driver from wm97xx_bat_set_pdata instead of module init.
> > This has several positive outcome points:
> > 1) This driver for wm97xx-battery is now registered on demand, thus
> > allowing other driver (e.g. tosa-battery) to claim the battery.
> > 2) After dropping __init from wm97xx_bat_set_pdata(), the wm97xx_bat
> > driver can be correctly built as a module. Then one can request it and
> > set the battery data.
> >
> > Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
> > Cc: Marek Vasut <marek.vasut@gmail.com>
> > ---
> > drivers/power/Kconfig | 4 ++--
> > drivers/power/wm97xx_battery.c | 12 +++++-------
> > include/linux/wm97xx_batt.h | 7 +++++--
> > 3 files changed, 12 insertions(+), 11 deletions(-)
>
> What about this patch?

Im sure you know what you are doing. I cant test it right now though, since I
have load of university work to do, sorry.


\
 
 \ /
  Last update: 2008-11-03 00:39    [W:2.706 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site