lkml.org 
[lkml]   [2015]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 10/15] twl4030_charger: only draw USB current as negotiated with host.
    On Tue 2015-02-24 15:33:52, NeilBrown wrote:
    > If the phy has been told what current it can draw, it tells us
    > and now we use that number.
    >
    > Note that 'vbus_draw' is in mA, while usb_cur is in uA.
    >
    > Signed-off-by: NeilBrown <neilb@suse.de>

    Acked-by: Pavel Machek <pavel@ucw.cz>

    > @@ -609,6 +610,7 @@ static int twl4030_bci_usb_ncb(struct notifier_block *nb, unsigned long val,
    > void *priv)
    > {
    > struct twl4030_bci *bci = container_of(nb, struct twl4030_bci, usb_nb);
    > + unsigned *vbus_draw = priv;

    unsigned int? [Or better mA_t *? :-)]

    Pavel
    --
    (english) http://www.livejournal.com/~pavelmachek
    (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


    \
     
     \ /
      Last update: 2015-03-02 22:21    [W:4.698 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site