Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v3.9-rc5 43 lines 1.1 kB view raw
1/* 2 * Copyright (C) ST-Ericsson SA 2012 3 * Author: Johan Gardsmark <johan.gardsmark@stericsson.com> for ST-Ericsson. 4 * License terms: GNU General Public License (GPL), version 2 5 */ 6 7#ifndef _UX500_CHARGALG_H 8#define _UX500_CHARGALG_H 9 10#include <linux/power_supply.h> 11 12#define psy_to_ux500_charger(x) container_of((x), \ 13 struct ux500_charger, psy) 14 15/* Forward declaration */ 16struct ux500_charger; 17 18struct ux500_charger_ops { 19 int (*enable) (struct ux500_charger *, int, int, int); 20 int (*kick_wd) (struct ux500_charger *); 21 int (*update_curr) (struct ux500_charger *, int); 22}; 23 24/** 25 * struct ux500_charger - power supply ux500 charger sub class 26 * @psy power supply base class 27 * @ops ux500 charger operations 28 * @max_out_volt maximum output charger voltage in mV 29 * @max_out_curr maximum output charger current in mA 30 * @enabled indicates if this charger is used or not 31 * @external external charger unit (pm2xxx) 32 */ 33struct ux500_charger { 34 struct power_supply psy; 35 struct ux500_charger_ops ops; 36 int max_out_volt; 37 int max_out_curr; 38 int wdt_refresh; 39 bool enabled; 40 bool external; 41}; 42 43#endif