- 06 1月, 2012 5 次提交
-
-
由 Rhyland Klein 提交于
Signed-off-by: NRhyland Klein <rklein@nvidia.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Rhyland Klein 提交于
Now that this driver is named more generally, this change updates the internal variables, defines and functions to use this new name. Signed-off-by: NRhyland Klein <rklein@nvidia.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Rhyland Klein 提交于
This driver for the bq20z75 implemented the register spec defined by the SBS standard. As this is not unique to this the TI part this was originally written for, we can generalize this driver to show its support for any SBS compliant battery. Signed-off-by: NRhyland Klein <rklein@nvidia.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Axel Lin 提交于
work_lock can be initialized automatically with DEFINE_MUTEX() rather than explicitly calling mutex_init(). This patch also removes an unused bat_lock mutex. Signed-off-by: NAxel Lin <axel.lin@gmail.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Jonghwan Choi 提交于
module.h was included twice. Signed-off-by: NJonghwan Choi <jhbird.choi@samsung.com> Acked-by: NMyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
- 04 1月, 2012 10 次提交
-
-
由 Milo(Woogyom) Kim 提交于
Pointer coding style changes : add space between return type and function pointer ex) u8(*get_batt_present) (void) -> u8 (*get_batt_present) (void) Signed-off-by: NWoogyom Kim <milo.kim@ti.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Kim, Milo 提交于
Oops, forgot to 'git add' it. [AV] Signed-off-by: NWoogyom Kim <milo.kim@ti.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Axel Lin 提交于
This patch converts the drivers in drivers/power/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: Mike Rapoport <mike@compulab.co.il> Cc: Lars-Peter Clausen <lars@metafoo.de> Cc: Nithish Mahalingam <nithish.mahalingam@intel.com> Cc: MyungJoo Ham <myungjoo.ham@samsung.com> Cc: Haojian Zhuang <haojian.zhuang@marvell.com> Cc: Balaji Rao <balajirrao@openmoko.org> Cc: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: NAxel Lin <axel.lin@gmail.com> Acked-by: NClifton Barnes <cabarnes@indesign-llc.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Kim, Milo 提交于
For the default value of power supply type, "unknown" is added. With default prop value, supply type property can be displayed as default - "Unknown". Signed-off-by: NMilo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Kim, Milo 提交于
1. Useless braces were omitted 2. Useless void casts were omitted 3. module exit name changed lp8727_chg_exit -> lp8727_exit 4. Pointer coding style changes no space between pointer('*') and pointer name ex) u8 * data -> u8 *data 5. Author information change : email and additional author Signed-off-by: NMilo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Kim, Milo 提交于
lp8727 i2c r/w functions are based on SMBUS I2C BLOCK. So the driver needs to check whether i2c bus supports this functionality or not. Signed-off-by: NWoogyom Kim <milo.kim@ti.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Woogyom Kim 提交于
National Semiconductor LP8727 is the battery charger with Micro/Mini USB interface. This IC includes below functions: - I2C interface for accessing user registers - Single input Li-Ion battery charger - Charger input ID detection from Micro/Mini USB - Multiplexing switches on USB, UART Signed-off-by: NWoogyom Kim <milo.kim@ti.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Donggeun Kim 提交于
Charger Manager provides power-supply-class aggregating information from multiple chargers and a fuel-gauge. Signed-off-by: NDonggeun Kim <dg77.kim@samsung.com> Signed-off-by: NMyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Donggeun Kim 提交于
Because battery health monitoring should be done even when suspended, it needs to wake up and suspend periodically. Thus, userspace battery monitoring may incur too much overhead; every device and task is woken up periodically. Charger Manager uses suspend-again to provide in-suspend monitoring. This patch allows to monitor battery health in-suspend state. Signed-off-by: NDonggeun Kim <dg77.kim@samsung.com> Signed-off-by: NMyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
- 10 12月, 2011 4 次提交
-
-
由 Jeremy Fitzhardinge 提交于
Make the relationship between the Wiimote and Wacom self-powered HID devices and their power supply explicit by adding a "powers" link. Signed-off-by: NJeremy Fitzhardinge <jeremy@goop.org> Cc: Jiri Kosina <jkosina@suse.cz>
-
由 Jeremy Fitzhardinge 提交于
The Wacom and Wiimote HID drivers register power supplies for themselves to indicate their battery levels. Make those power supplies device scope. Signed-off-by: NJeremy Fitzhardinge <jeremy@goop.org> Cc: Jiri Kosina <jkosina@suse.cz>
-
由 Jeremy Fitzhardinge 提交于
If a power supply has a scope of "Device", then allow the power supply to indicate what device it actually powers. This is represented in the power supply's sysfs directory as a symlink named "powers", which points to the sysfs directory of the powered device. If the device has children, then the sub-devices are also powered by the same power supply. Signed-off-by: NJeremy Fitzhardinge <jeremy@goop.org> Cc: Richard Hughes <richard@hughsie.com>
-
由 Jeremy Fitzhardinge 提交于
This adds a "scope" attribute to a power_supply, which indicates how much of the system it powers. It appears in sysfs as "scope" or in the uevent file as POWER_SUPPLY_SCOPE=. There are presently three possible values: Unknown - unknown power topology System - the power supply powers the whole system Device - it powers a specific device, or tree of devices A power supply which doesn't have a "scope" attribute should be assumed to have "System" scope. In general, usermode should assume that loss of all System-scoped power supplies will power off the whole system, but any single one is sufficient to power the system. Signed-off-by: NJeremy Fitzhardinge <jeremy@goop.org> Cc: Richard Hughes <richard@hughsie.com>
-
- 26 11月, 2011 18 次提交
-
-
由 Philip Rakity 提交于
The interrupt for ac on/off can be missed during boot time. Check if online by seeing if we have power. We choose 0.5V since this is high enough to avoid random reading from a input that could be floating if no charger. Signed-off-by: NPhilip Rakity <prakity@marvell.com> Signed-off-by: NTed Bennett <tbennett@marvell.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Philip Rakity 提交于
Reading the voltage, charge etc requires that we tell the chip what property we want to read before reading it according to maxim. Signed-off-by: NPhilip Rakity <prakity@marvell.com> Signed-off-by: NThomas Liu <Thomas.Liu@maxim-ic.com> Tested-by: NTed Bennett <tbennett@marvell.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Ramakrishna Pallala 提交于
In max17042_get_property(...), the values returned by max17042_read_reg are directly assigned to the variables, even if the read results in an error. This patch checks for the return code from max17042_read_reg and exits the function if there is any error. Signed-off-by: NRamakrishna Pallala <ramakrishna.pallala@intel.com> Acked-by: NMyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Paul Parsons 提交于
Add rated capacity of the HP iPAQ hx4700 3.7V 3600mAh (359114-001) battery. For this battery the value of the rated capacity EEPROM register at 0x32 is 14; thus rated_capacities[14] = 3600. Signed-off-by: NPaul Parsons <lost.distance@yahoo.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Yong Zhang 提交于
Since commit [e58aa3d2: genirq: Run irq handlers with interrupts disabled], We run all interrupt handlers with interrupts disabled and we even check and yell when an interrupt handler returns with interrupts enabled (see commit [b738a50a: genirq: Warn when handler enables interrupts]). So now this flag is a NOOP and can be removed. Signed-off-by: NYong Zhang <yong.zhang0@gmail.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Pali Rohár 提交于
* power_supply_unregister call bq27x00_battery_get_property which call bq27x00_battery_poll * make sure that bq27x00_battery_poll will not call schedule_delayed_work again after unregister (which cause OOPS) Signed-off-by: NPali Rohár <pali.rohar@gmail.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Pali Rohár 提交于
* Do not be noise if battery is not calibrated (use dev_dbg) Signed-off-by: NPali Rohár <pali.rohar@gmail.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Pali Rohár 提交于
Signed-off-by: NPali Rohár <pali.rohar@gmail.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Pali Rohár 提交于
Signed-off-by: NPali Rohár <pali.rohar@gmail.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Pali Rohár 提交于
Signed-off-by: NPali Rohár <pali.rohar@gmail.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Pali Rohár 提交于
* CI (Capacity Inaccurate) flag is set after full reset on bq27000 battery * when is set, all capacity properties should be reported incorrectly, because there was no learning cycle and battery was not calibrated * instead reporting incorrect values, report -ENODATA Signed-off-by: NPali Rohár <pali.rohar@gmail.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Pali Rohár 提交于
Signed-off-by: NPali Rohár <pali.rohar@gmail.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Pali Rohár 提交于
* This prevent reporting old current_now value for bq27000 * Also ask for current flags, to make sure that current_now will be reported with correct signature Signed-off-by: NPali Rohár <pali.rohar@gmail.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Philip Rakity 提交于
The power core infrastructure allow external power change events to be passed to drivers what are listed in the supplied_to call back field. Enable this feature by allowing the supplied_to field to be passed to the driver. This feature will enable drivers named in the supplied_to field that have a external_power_changed callback to be notified when power was been turned on or off. Signed-off-by: NPhilip Rakity <prakity@marvell.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Philip Rakity 提交于
The max8925 cannot return usb status. The bits [MAX8925_IRQ_VCHG_USB_OVP] = { .reg = MAX8925_CHG_IRQ1, .mask_reg = MAX8925_CHG_IRQ1_MASK, .offs = 1 << 3, }, [MAX8925_IRQ_VCHG_USB_F] = { .reg = MAX8925_CHG_IRQ1, .mask_reg = MAX8925_CHG_IRQ1_MASK, .offs = 1 << 4, }, [MAX8925_IRQ_VCHG_USB_R] = { .reg = MAX8925_CHG_IRQ1, .mask_reg = MAX8925_CHG_IRQ1_MASK, .offs = 1 << 5, }, do not exist in the irq register. Signed-off-by: NPhilip Rakity <prakity@marvell.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Philip Rakity 提交于
On brownstone rev 4 ac-insert detect is handled by vbus. allow the platform code to configure the disabling of insert by setting no_insert_detect. Signed-off-by: NPhilip Rakity <prakity@marvell.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Philip Rakity 提交于
Brownstone does not have temperature reading circuit hooked up. This leads to spurious interrupts. Allow the platform layer to indicate no temperature circuit and do not activate interrupts if no temperature control is set Signed-off-by: NPhilip Rakity <prakity@marvell.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
由 Philip Rakity 提交于
The datasheet indicates a 12 bit value is returned for i2c registers for voltage and current. Code was assuming 8 bits. But default for chip is 12 bit return value. Voltage is returned in 2mV units -- adjust to return as uV per linux power spec Adjust current calculation to return units in uA. Signed-off-by: NPhilip Rakity <prakity@marvell.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
- 25 11月, 2011 3 次提交
-
-
由 Jonghwan Choi 提交于
The 'val' is a 'unsigned char', so it is never less than zero. Signed-off-by: NJonghwan Choi <jhbird.choi@gmail.com> Acked-by: NMyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git由 Anton Vorontsov 提交于
Battery tree missed last merge window, so it became stale enough so that patches no longer apply as people use pretty recent kernels.
-
由 Major Lee 提交于
When DCDC input line over current detecting, PMIC will change charging current automatically. Logging event is enough. Signed-off-by: NMajor Lee <major_lee@wistron.com> Signed-off-by: NAlan Cox <alan@linux.intel.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
-