Re: [PATCH] Expose wacom pen tablet battery and ac thru power_supply class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 15 Mar 2010, Przemo Firszt wrote:

> > > Does it make sense to add a line to Kconfig to explain that
> > > CONFIG_POWER_SUPPLY/CONFIG_POWER_SUPPLY_MODULE is required to enable
> > > monitoring battery/ac state?
> > 
> > Either that, or introducing separate CONFIG sub-option for the Wacom 
> > driver might be reasonable option as well.
> Hi Jiri,
> Thanks for help - next time I'll know how to do it :-)
> I went the CONFIG sub-option way - see attached.

I have applied it, thanks.

One question still though ..

> +       case POWER_SUPPLY_PROP_CAPACITY:
> +               /* show 100% battery capacity when charging */
> +               if (power_state == 0)
> +                       val->intval = 100;
> +               else
> +                       val->intval = power_state;
> +               break;

Why is it not possible to show the actual percentage in the charging state 
as well?

Thanks,

-- 
Jiri Kosina
SUSE Labs, Novell Inc.
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux