06 Jan, 2012

1 commit

  • Some sources for adc battery information provide only inaccurate results
    where the read value differs from the real value with positive and negative
    offsets. For such sources it can be more accurate to collect two or more
    value sample and use the average of all collected values.

    This patch adds pdata options volt_samples, current_samples and
    backup_volt_samples to specifiy the number of samples to collect,
    reads the specified number of samples and calculates the average of those.
    For unset sample-number-values a default of 1 is assumed.

    Signed-off-by: Heiko Stuebner
    Signed-off-by: Anton Vorontsov

    Heiko Stübner
     

04 Jan, 2012

1 commit

  • 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
    Cc: Lars-Peter Clausen
    Cc: Nithish Mahalingam
    Cc: MyungJoo Ham
    Cc: Haojian Zhuang
    Cc: Balaji Rao
    Cc: Mark Brown
    Signed-off-by: Axel Lin
    Acked-by: Clifton Barnes
    Signed-off-by: Anton Vorontsov

    Axel Lin
     

20 Aug, 2011

1 commit

  • Add linux/module.h to fix this compilation error:

    drivers/power/s3c_adc_battery.c:435:15: error: expected declaration specifiers or ‘...’ before string constant
    drivers/power/s3c_adc_battery.c:435:1: warning: data definition has no type or storage class
    drivers/power/s3c_adc_battery.c:435:1: warning: type defaults to ‘int’ in declaration of ‘MODULE_AUTHOR’
    drivers/power/s3c_adc_battery.c:435:15: warning: function declaration isn’t a prototype
    drivers/power/s3c_adc_battery.c:436:20: error: expected declaration specifiers or ‘...’ before string constant
    drivers/power/s3c_adc_battery.c:436:1: warning: data definition has no type or storage class
    drivers/power/s3c_adc_battery.c:436:1: warning: type defaults to ‘int’ in declaration of ‘MODULE_DESCRIPTION’
    drivers/power/s3c_adc_battery.c:436:20: warning: function declaration isn’t a prototype
    drivers/power/s3c_adc_battery.c:437:16: error: expected declaration specifiers or ‘...’ before string constant
    drivers/power/s3c_adc_battery.c:437:1: warning: data definition has no type or storage class
    drivers/power/s3c_adc_battery.c:437:1: warning: type defaults to ‘int’ in declaration of ‘MODULE_LICENSE’
    drivers/power/s3c_adc_battery.c:437:16: warning: function declaration isn’t a prototype
    make[2]: *** [drivers/power/s3c_adc_battery.o] Error 1

    Signed-off-by: Vasily Khoruzhick
    Signed-off-by: Ian Lartey
    Signed-off-by: Anton Vorontsov

    Vasily Khoruzhick
     

08 Jul, 2011

1 commit


16 Mar, 2011

1 commit


15 Jan, 2011

1 commit

  • * git://git.infradead.org/battery-2.6: (21 commits)
    power_supply: Add MAX17042 Fuel Gauge Driver
    olpc_battery: Fix up XO-1.5 properties list
    olpc_battery: Add support for CURRENT_NOW and VOLTAGE_NOW
    olpc_battery: Add support for CHARGE_NOW
    olpc_battery: Add support for CHARGE_FULL_DESIGN
    olpc_battery: Ambient temperature is not available on XO-1.5
    jz4740-battery: Should include linux/io.h
    s3c_adc_battery: Add gpio_inverted field to pdata
    power_supply: Don't use flush_scheduled_work()
    power_supply: Fix use after free and memory leak
    gpio-charger: Fix potential race between irq handler and probe/remove
    gpio-charger: Provide default name for the power_supply
    gpio-charger: Check result of kzalloc
    jz4740-battery: Check if platform_data is supplied
    isp1704_charger: Detect charger after probe
    isp1704_charger: Set isp->dev before anything needs it
    isp1704_charger: Detect HUB/Host chargers
    isp1704_charger: Correct length for storing model
    power_supply: Add gpio charger driver
    jz4740-battery: Protect against concurrent battery readings
    ...

    Linus Torvalds
     

22 Dec, 2010

1 commit


02 Nov, 2010

1 commit

  • "gadget", "through", "command", "maintain", "maintain", "controller", "address",
    "between", "initiali[zs]e", "instead", "function", "select", "already",
    "equal", "access", "management", "hierarchy", "registration", "interest",
    "relative", "memory", "offset", "already",

    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Jiri Kosina

    Uwe Kleine-König
     

23 Jul, 2010

1 commit

  • s3c-adc-battery is driver for monitoring and charging battery on
    iPAQ H1930/H1940/RX1950.

    It depends on s3c-adc driver to get battery voltage and current.

    Signed-off-by: Vasily Khoruzhick
    Signed-off-by: Anton Vorontsov

    Vasily Khoruzhick