|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/init.h>#include <linux/platform_device.h>#include <linux/mutex.h>#include <linux/err.h>#include <linux/i2c.h>#include <linux/delay.h>#include <linux/power_supply.h>#include <linux/max17040_battery.h>#include <linux/slab.h>Go to the source code of this file.
Data Structures | |
| struct | max17040_chip |
Macros | |
| #define | MAX17040_VCELL_MSB 0x02 |
| #define | MAX17040_VCELL_LSB 0x03 |
| #define | MAX17040_SOC_MSB 0x04 |
| #define | MAX17040_SOC_LSB 0x05 |
| #define | MAX17040_MODE_MSB 0x06 |
| #define | MAX17040_MODE_LSB 0x07 |
| #define | MAX17040_VER_MSB 0x08 |
| #define | MAX17040_VER_LSB 0x09 |
| #define | MAX17040_RCOMP_MSB 0x0C |
| #define | MAX17040_RCOMP_LSB 0x0D |
| #define | MAX17040_CMD_MSB 0xFE |
| #define | MAX17040_CMD_LSB 0xFF |
| #define | MAX17040_DELAY 1000 |
| #define | MAX17040_BATTERY_FULL 95 |
| #define | max17040_suspend NULL |
| #define | max17040_resume NULL |
Functions | |
| MODULE_DEVICE_TABLE (i2c, max17040_id) | |
| module_i2c_driver (max17040_i2c_driver) | |
| MODULE_AUTHOR ("Minkyu Kang <[email protected]>") | |
| MODULE_DESCRIPTION ("MAX17040 Fuel Gauge") | |
| MODULE_LICENSE ("GPL") | |
| #define MAX17040_BATTERY_FULL 95 |
Definition at line 38 of file max17040_battery.c.
| #define MAX17040_CMD_LSB 0xFF |
Definition at line 35 of file max17040_battery.c.
| #define MAX17040_CMD_MSB 0xFE |
Definition at line 34 of file max17040_battery.c.
| #define MAX17040_DELAY 1000 |
Definition at line 37 of file max17040_battery.c.
| #define MAX17040_MODE_LSB 0x07 |
Definition at line 29 of file max17040_battery.c.
| #define MAX17040_MODE_MSB 0x06 |
Definition at line 28 of file max17040_battery.c.
| #define MAX17040_RCOMP_LSB 0x0D |
Definition at line 33 of file max17040_battery.c.
| #define MAX17040_RCOMP_MSB 0x0C |
Definition at line 32 of file max17040_battery.c.
| #define max17040_resume NULL |
Definition at line 273 of file max17040_battery.c.
| #define MAX17040_SOC_LSB 0x05 |
Definition at line 27 of file max17040_battery.c.
| #define MAX17040_SOC_MSB 0x04 |
Definition at line 26 of file max17040_battery.c.
| #define max17040_suspend NULL |
Definition at line 272 of file max17040_battery.c.
| #define MAX17040_VCELL_LSB 0x03 |
Definition at line 25 of file max17040_battery.c.
| #define MAX17040_VCELL_MSB 0x02 |
Definition at line 24 of file max17040_battery.c.
| #define MAX17040_VER_LSB 0x09 |
Definition at line 31 of file max17040_battery.c.
| #define MAX17040_VER_MSB 0x08 |
Definition at line 30 of file max17040_battery.c.
| MODULE_AUTHOR | ( | "Minkyu Kang <[email protected]>" | ) |
| MODULE_DESCRIPTION | ( | "MAX17040 Fuel Gauge" | ) |
| MODULE_DEVICE_TABLE | ( | i2c | , |
| max17040_id | |||
| ) |
| module_i2c_driver | ( | max17040_i2c_driver | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
1.8.2