• Anton Vorontsov's avatar
    Merge with upstream to accommodate with thermal changes · e6db06a5
    Anton Vorontsov authored
    This merge is performed to take commit c56f5c03 ("Thermal: Make
    Thermal trip points writeable") out of Linus' tree and then fixup power
    supply class. This is needed since thermal stuff added a new argument:
    
      CC      drivers/power/power_supply_core.o
    drivers/power/power_supply_core.c: In function ‘psy_register_thermal’:
    drivers/power/power_supply_core.c:204:6: warning: passing argument 3 of ‘thermal_zone_device_register’ makes integer from pointer without a cast [enabled by default]
    include/linux/thermal.h:154:29: note: expected ‘int’ but argument is of type ‘struct power_supply *’
    drivers/power/power_supply_core.c:204:6: error: too few arguments to function ‘thermal_zone_device_register’
    include/linux/thermal.h:154:29: note: declared here
    make[1]: *** [drivers/power/power_supply_core.o] Error 1
    make: *** [drivers/power/] Error 2
    Signed-off-by: default avatarAnton Vorontsov <anton.vorontsov@linaro.org>
    e6db06a5
power_supply_core.c 7.28 KB